angerangel edited this page Jan 3, 2013 · 1 revision

USAGE

   FUNC spec body

DESCRIPTION

Defines a user function with given spec and body.

FUNC is a function value.

ARGUMENTS

  • spec -- Help string (opt) followed by arg words (and opt type and string) (block!)
  • body -- The body block of the function (block!)

#SOURCE

func: make function! [  [
    "Defines a user function with given spec and body."
    spec [block!] {Help string (opt) followed by arg words (and opt type and string)}
    body [block!] "The body block of the function"
][
    make function! copy/deep reduce [spec body]
] ]
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.