Last modified on 13 November 2012, at 10:43

REBOL Programming/values-of

USAGE:Edit

VALUES-OF value 

DESCRIPTION:Edit

Returns a copy of the values of an object.

VALUES-OF is a function value.

ARGUMENTSEdit

  • value -- (Type: any)

SOURCE CODEEdit

values-of: func [
    "Returns a copy of the values of an object." 
    value
][
    case [
        object? :value [remove second :value] 
        any-function? :value [none] 
        'else [cause-error 'script 'cannot-use reduce ['reflect type? :value]]
    ]
]