lists vocabulary
Factor handbook > Vocabulary index


Documentation
Lists

Meta-data
Tags:collections
Authors:James Cash


Words

Tuple classes
ClassSuperclassSlots
cons-state tuplecar cdr


Singleton classes
+nil+


Mixin classes
list


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 )
2list( a b -- cons )
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>array( list -- array )
llength( list -- n )
lmap( ... list quot: ( ... elt -- ... newelt ) -- ... result )
lmap>array( ... list quot: ( ... elt -- ... newelt ) -- ... array )
lnth( n list -- elt )
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?( object -- ? )


Files


Children from resource:basis
VocabularySummary
lists.lazyLazy lists


Children
VocabularySummary
lists.privatelists.private vocabulary