string :typeof ( mixed $VALUE )
Returns a string describing the type of VALUE
. This can be used to check if a value needs typecasting, to distinguish between values which are loosely equal, or as an alternative way to check a function's return type.
nil
.bool
.bin
, oct
, int
, or hex
.float
.string
.array
.dict
.???
.# typeof example. !fun :randomtype !if :random i2 :return i0 !else :return s'0' !fi !nuf :writeln :typeof :randomtype
wikipage modified on 2014/0601/2317