The list protocol
Factor handbook » The language » Collections » Lists

Next:Constructing strict lists


Lists are instances of a mixin class:
list


Instances of the mixin must implement the following words:
car ( cons -- car )

cdr ( cons -- cdr )

nil? ( object -- ? )