Handbook
Glossary
slice-til-whitespace ( n string -- n' string slice/f ch/f )
Vocabulary
modern
.
slices
Inputs
n
an
object
string
an
object
Outputs
n'
an
object
string
an
object
slice/f
an
object
ch/f
an
object
Definition
USING:
kernel
sequences
sequences.extras
;
IN:
modern.slices
::
slice-til-whitespace
( n string -- n' string slice/f ch/f )
n
[
n string
[
" \r\n"
member?
]
find-from
:>
( n' ch ) n' string n n' string
?<slice>
ch
]
[
f
string
f
f
]
if
;
inline