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.



See also:

to   as-pair   pair?  


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 > - WIP Wiki Feedback Admin