REBOL Programming/as-pair

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

USAGE:[edit]

AS-PAIR x y 

DESCRIPTION:[edit]

Combine X and Y values into a pair.

AS-PAIR is a function value.

ARGUMENTS[edit]

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

SOURCE CODE[edit]

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