Trimming sequences
Factor handbook > The language > Collections > Sequence operations

Prev:Sets
Next:Cartesian product operations


Trimming words:
trim ( ... seq quot: ( ... elt -- ... ? ) -- ... newseq )

trim-head ( ... seq quot: ( ... elt -- ... ? ) -- ... newseq )

trim-tail ( ... seq quot: ( ... elt -- ... ? ) -- ... newseq )


Potentially more efficient trim:
trim-slice ( ... seq quot: ( ... elt -- ... ? ) -- ... slice )

trim-head-slice ( ... seq quot: ( ... elt -- ... ? ) -- ... slice )

trim-tail-slice ( ... seq quot: ( ... elt -- ... ? ) -- ... slice )