REBOL Programming/also

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

ALSO value1 value2 

DESCRIPTION:[edit]

Returns the first value, but also evaluates the second.

ALSO is a function value.

ARGUMENTS[edit]

  • value1 -- (Type: any-type)
  • value2 -- (Type: any-type)

SOURCE CODE[edit]

also: func [
    {Returns the first value, but also evaluates the second.} 
    value1 [any-type!] 
    value2 [any-type!]
][
    return get/any 'value1
]