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.

ARGUMENTS

edit
  • value -- (Type: any)

SOURCE CODE

edit
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]]
    ]
]