split-indices ( seq indices -- pieces )
Factor handbook » The language » Collections » Sequence operations » Splitting sequences

Prev:split ( seq separators -- pieces )
Next:split-slice ( seq separators -- pieces )


Vocabulary
splitting

Inputs
seqa sequence
indicesa sequence


Outputs
piecesa new array


Word description
Splits a sequence at the given indices.

Examples
USING: prettyprint splitting ; "hello world" { 3 6 } split-indices .
{ "hel" "lo " "world" }


Definition