cons
l
cons
creates a list from a first element and
another list:
l
cons(3, [5, 7, 11, 13])
==>
[3, 5, 7, 11, 13]
l
cons([3, 5, 7], [11, 13])
==>
[[3, 5, 7], 11, 13]
l
IMPORTANT: cons is not
append
:
l
append([3, 5, 7], [11, 13])
==>
[3, 5, 7, 11, 13]