Handbook
Glossary
stream-lines ( stream -- seq )
Factor handbook
»
Input and output
»
Streams
»
Stream utilities
Prev:
stream-print ( str stream -- )
Next:
read-lines ( -- seq )
Vocabulary
io
Inputs
stream
an input stream
Outputs
seq
a
sequence
of
string
s
Word description
Reads lines of text until the stream is exhausted, collecting them in a sequence of strings.
Definition
USING:
destructors
kernel
sequences
;
IN:
io
:
stream-lines
( stream -- seq )
[
[
]
collector
[
each-stream-line
]
dip
{
}
like
]
with-disposal
;
inline