lists vocabulary
Factor handbook ยป Vocabulary index


Documentation
Lists

Metadata
Tags:collections
Authors:James Cash


Words

Tuple classes
ClassSuperclassSlots
cons-state tuplecar cdr
list-syntax-error tuple


Singleton classes
+nil+


Mixin classes
list


Parsing words
WordSyntax
L{


Generic words
WordStack effect
>list( object -- list )
car( cons -- car )
cdr( cons -- cdr )
nil?( object -- ? )


Ordinary words
WordStack effect
1list( obj -- cons )
1list?( list -- ? )
2car( list -- car cadr )
2leach( ... list1 list2 quot: ( ... elt1 elt2 -- ... ) -- ... )
2list( a b -- cons )
2lreduce( ... list1 list2 identity quot: ( ... prev elt1 elt2 -- ... next ) -- ... result )
3car( list -- car cadr caddr )
3list( a b c -- cons )
atom?( obj -- ? )
cadr( list -- elt )
cons( car cdr -- cons-state )
deeplist>array( list -- array )
foldl( ... list identity quot: ( ... prev elt -- ... next ) -- ... result )
foldr( ... list identity quot: ( ... prev elt -- ... next ) -- ... result )
lappend( list1 list2 -- newlist )
lcut( list index -- before after )
leach( ... list quot: ( ... elt -- ... ) -- ... )
list-syntax-error( -- * )
list>array( list -- array )
llength( list -- n )
lmap( ... list quot: ( ... elt -- ... newelt ) -- ... result )
lmap>array( ... list quot: ( ... elt -- ... newelt ) -- ... array )
lnth( n list -- elt )
lreduce( ... list identity quot: ( ... prev elt -- ... next ) -- ... result )
lreverse( list -- newlist )
nil( -- symbol )
sequence>list( sequence -- list )
swons( cdr car -- cons )
uncons( cons -- car cdr )
unswons( cons -- cdr car )


Class predicate words
WordStack effect
+nil+?( object -- ? )
cons-state?( object -- ? )
list-syntax-error?( object -- ? )
list?( object -- ? )


Files


Metadata files


Children from resource:basis
VocabularySummary
lists.lazyLazy lists


Children from resource:extra
VocabularySummary
lists.circularCircular sequences as infinite linked lists


Children
VocabularySummary
lists.private