Is this a function?
funcp expression
func? expression
Returns true
if expression returns a function.
Example:
to factorial :x
let "xf 1
repeat :x ["xf := :xf * repcount]
output :xf
end
print factorial 5
print func? $factorial
print func? "factorial
print func? $print
Output:
120
True
False
True
See also:
Function definition
$, func - function
Type predicated
Table of Content