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

Prev:cons ( car cdr -- cons-state )
Next:sequence>list ( sequence -- list )


Vocabulary
lists

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


Outputs
consa list


Word description
Constructs a cons cell.

See also
cons, uncons, unswons

Definition


: swons ( cdr car -- cons ) swap cons ; inline