cons ( car cdr -- cons-state )
Factor handbook » The language » Collections » Lists » Constructing strict lists

Next:swons ( cdr car -- cons )


Vocabulary
lists

Inputs
carthe head of the list cell
cdrthe tail of the list cell


Outputs
cons-statea list


Word description
Constructs a cons cell.

See also
swons, uncons, unswons

Definition


: cons ( car cdr -- cons-state ) \ cons-state boa ; inline