Rebol Programming/words-of

= USAGE: = WORDS-OF value

= DESCRIPTION: = Returns a copy of the words of a function or object.

WORDS-OF is a function value. = ARGUMENTS =
 * value -- (Type: any)

= SOURCE CODE = 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]] ] ]