sequences.generalizations vocabulary
Factor handbook ยป Vocabulary index


Documentation
Generalized sequence words

Words

Macro words
WordStack effect
(ncollect)( n -- quot )
(nsequence)( n -- quot )
?firstn( n -- quot )
finish-nfind( n -- quot )
firstn( n -- quot )
firstn-unsafe( n -- quot )
narray( n -- quot )
nmap-reduce( map-quot reduce-quot n -- quot )
nmin-length( n -- quot )
nnew-sequence( n -- quot )
nsequence( n exemplar -- quot )
nset-nth-unsafe( n -- quot )
set-firstn( n -- quot )
set-firstn-unsafe( n -- quot )


Ordinary words
WordStack effect
(neach)( seq... quot n -- len quot' )
(nfind)( seqs... quot n quot' -- i elts... )
?lastn( seq n -- elts... )
lastn( seq n -- elts... )
mnmap( m*seq quot m n -- result*n )
mnmap-as( m*seq quot n*exemplar m n -- result*n )
nall?( seqs... quot n -- ? )
nany?( seqs... quot n -- ? )
nappend( n -- seq )
nappend-as( n exemplar -- seq )
ncollect( len quot into... n -- )
ncollector( quot n -- quot' vec... )
ncollector-as( quot exemplar... n -- quot' vec... )
neach( seq... quot n -- )
nfind( seqs... quot n -- i elts... )
nmap( seq... quot n -- result )
nmap-as( seq... quot exemplar n -- result )
nmap-integers-as( len quot exemplar... n -- result... )
nnew-like( len exemplar... quot n -- result... )
nnth( n seq... n -- )
nnth-unsafe( n seq... n -- )
nproduce( pred quot n -- seq... )
nproduce-as( pred quot exemplar... n -- seq... )
set-lastn( elts... seq n -- )


Files