REBOL Programming/words-of

USAGE:Edit

WORDS-OF value 

DESCRIPTION:Edit

Returns a copy of the words of a function or object.

WORDS-OF is a function value.

ARGUMENTSEdit

  • value -- (Type: any)

SOURCE CODEEdit

words-of: func [
    {Returns a copy of the words of a function or object.} 
    value
][
    case [
        object? :value [bind remove first :value :value] 
        any-function? :value [first :value] 
        'else [cause-error 'script 'cannot-use reduce ['reflect type? :value]]
    ]
]
Last modified on 13 November 2012, at 10:42