string-lines throws an error if input is not a string
parent
54e4e8873a
commit
4117430762
|
@ -63,7 +63,9 @@ PRIVATE>
|
||||||
: split ( seq separators -- pieces )
|
: split ( seq separators -- pieces )
|
||||||
[ split, ] { } make ;
|
[ split, ] { } make ;
|
||||||
|
|
||||||
: string-lines ( str -- seq )
|
GENERIC: string-lines ( str -- seq )
|
||||||
|
|
||||||
|
M: string string-lines
|
||||||
dup "\r\n" intersects? [
|
dup "\r\n" intersects? [
|
||||||
"\n" split [
|
"\n" split [
|
||||||
but-last-slice [
|
but-last-slice [
|
||||||
|
|
Loading…
Reference in New Issue