function?

checks if given value is of type :function


Parameters

function? value :any

Attributes

builtincheck if, internally, it's a built-in

Returns

  • :logical

Examples

copy
print function? $[x][2*x] ; true print function? var 'print ; true print function? "print" ; false print function? 123 ; false

copy
f: function [x][x+2] function? var'f ; => true function? var'print ; => true function?.builtin var'f ; => false function?.builtin var'print ; => true

Related