REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: any-function?

any-function?  value

Return TRUE if value is any type of function.

Arguments:

value [any-type!]

See also:

function?   native?   op?   any-block?   any-string?   any-word?  

Description

Returns true if the value is any type of function and returns false for all other values.

print any-function? :find
true
print any-function? :+
true
print any-function? func [] [print "hi"]
true
print any-function? 123
false

To learn what datatypes are functions:

print any-function!
native! action! rebcode! command! op! closure! function!


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin