string-lines ( seq -- seq' )
Factor handbook > The language > Collections > Sequence operations > Splitting sequences

Prev:split-when-slice ( ... seq quot: ( ... elt -- ... ? ) -- ... pieces )
Next:replace ( seq old new -- new-seq )


Vocabulary
splitting

Inputs and outputs
seqa sequence
seq'a sequence of strings


Word description
Splits a string along line breaks.

Examples
USING: prettyprint splitting ; "Hello\r\nworld\n" string-lines .
{ "Hello" "world" }


Definition


Methods