splitting vocabulary
Factor handbook > Vocabulary index


Documentation
Splitting sequences

Meta-data
Tags:collections, text
Authors:Slava Pestov


Words

Generic words
WordStack effect
string-lines( seq -- seq' )


Ordinary words
WordStack effect
?head( seq begin -- newseq ? )
?head-slice( seq begin -- newseq ? )
?tail( seq end -- newseq ? )
?tail-slice( seq end -- newseq ? )
replace( seq old new -- new-seq )
split( seq separators -- pieces )
split-indices( seq indices -- pieces )
split-slice( seq separators -- pieces )
split-subseq( seq subseq -- seqs )
split-when( ... seq quot: ( ... elt -- ... ? ) -- ... pieces )
split-when-slice( ... seq quot: ( ... elt -- ... ? ) -- ... pieces )
split1( seq subseq -- before after )
split1-last( seq subseq -- before after )
split1-last-slice( seq subseq -- before-slice after-slice )
split1-slice( seq subseq -- before-slice after-slice )
split1-when( ... seq quot: ( ... elt -- ... ? ) -- ... before after )
split1-when-slice( ... seq quot: ( ... elt -- ... ? ) -- ... before-slice after-slice )


Files


Children from resource:basis
VocabularySummary
splitting.monotonicSplit a sequence into monotonically-increasing subsequences


Children from resource:extra
VocabularySummary
splitting.extrassplitting.extras vocabulary


Children
VocabularySummary
splitting.privatesplitting.private vocabulary