< Rebol Programming

USAGE:

SET word value /any /pad 

DESCRIPTION:

Sets a word, block of words, or object to specified value(s).

SET is a native value.

ARGUMENTS

  • word -- Word or words to set (Type: any-word block object)
  • value -- Value or block of values (Type: any-type)

REFINEMENTS

  • /any -- Allows setting words to any value.
  • /pad -- For objects, if block is too short, remaining words are set to NONE.

SOURCE CODE

set: native[
    {Sets a word, block of words, or object to specified value(s).} 
    word [any-word! block! object!] "Word or words to set" 
    value [any-type!] "Value or block of values" 
    /any "Allows setting words to any value." 
    /pad {For objects, if block is too short, remaining words are set to NONE.}
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.