Rebol Programming/spec-of

USAGE:

edit
SPEC-OF value 

DESCRIPTION:

edit

Returns a copy of the spec of a function.

SPEC-OF is a function value.

ARGUMENTS

edit
  • value -- (Type: any)

SOURCE CODE

edit
spec-of: func [
    "Returns a copy of the spec of a function." 
    value
][
    case [
        object? :value [none] 
        any-function? :value [copy/deep third :value] 
        'else [cause-error 'script 'cannot-use reduce ['reflect type? :value]]
    ]
]