REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: to-pair

to-pair  value

Converts to pair! value.

Arguments:

value

See also:

to   as-pair   pair?  

Description

Returns a pair! value made from the given value.

print to-pair [120 50]

x: 100
y: 80
print to-pair reduce [x y]

This last line is done so often that the AS-PAIR function was created.

See the PAIR! word for more detail.


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin