Rebol Programming/as-pair

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

USAGE:[edit | edit source]

AS-PAIR x y 

DESCRIPTION:[edit | edit source]

Combine X and Y values into a pair.

AS-PAIR is a function value.

ARGUMENTS[edit | edit source]

  • x -- (Type: number)
  • y -- (Type: number)

SOURCE CODE[edit | edit source]

as-pair: func [
    "Combine X and Y values into a pair." 
    x [number!] y [number!]
    add 1x0 * x 0x1 * y