A pair can be create with the cons
function. The name of the function stand for constructor. In Scheme, everything is pretty much based on pairs.
(cons a b)
The function return a pair containing the element a
and b
. The first parameter of cons
is called car
(Content Address Register) and the second argument is the cdr
(Content Decrement Register).