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.

ARGUMENTSEdit

  • value -- (Type: any)

SOURCE CODEEdit

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]]
    ]
]
Last modified on 13 November 2012, at 10:49