Jump to content

Rebol Programming/also

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
ALSO value1 value2 

DESCRIPTION:

[edit | edit source]

Returns the first value, but also evaluates the second.

ALSO is a function value.

ARGUMENTS

[edit | edit source]
  • value1 -- (Type: any-type)
  • value2 -- (Type: any-type)

SOURCE CODE

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