Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
Adding and removing sequence elements
Factor documentation
>
Factor handbook
>
The language
>
Collections
>
Sequence operations
Prev:
Sequence combinators
Next:
Appending sequences
Adding elements:
prefix
( seq elt -- newseq )
suffix
( seq elt -- newseq )
insert-nth
( elt n seq -- seq' )
Removing elements:
remove
( elt seq -- newseq )
remove-eq
( elt seq -- newseq )
remove-nth
( n seq -- seq' )