REBOL Programming/as-pair

USAGE:Edit

AS-PAIR x y 

DESCRIPTION:Edit

Combine X and Y values into a pair.

AS-PAIR is a function value.

ARGUMENTSEdit

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

SOURCE CODEEdit

as-pair: func [
    "Combine X and Y values into a pair." 
    x [number!] y [number!]
][
    add 1x0 * x 0x1 * y
]
Last modified on 27 October 2012, at 22:18