Syntax
type(value)
Description
The type() function returns the data type of the given value.
Example
a=10
b=1.5
c="foobar"
d=[1,2]
e={"One": 1}
f=true
g=fn(n) {return n}
function h(n) {return n}
foo=open("/etc/passwd")
println(type(a))
println(type(b))
println(type(c))
println(type(d))
println(type(e))
println(type(f))
println(type(g))
println(type(h))
println(type(foo))
integer
float
string
array
hash
bool
function
function
file