Handbook
Glossary
split-slice ( seq separators -- pieces )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Splitting sequences
Prev:
split-indices ( seq indices -- pieces )
Next:
split-when ( ... seq quot: ( ... elt -- ... ? ) -- ... pieces )
Vocabulary
splitting
Inputs
seq
an
object
separators
an
object
Outputs
pieces
an
object
Definition
USING:
kernel
sequences
;
IN:
splitting
:
split-slice
( seq separators -- pieces )
[
member?
]
curry
split-when-slice
;
inline