< Rebol Programming
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]]
]
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.