read-lines ( -- seq ) (original) (raw)
read-lines ( -- seq )
Factor handbook » Input and output » Streams » Stream utilities
Prev: | stream-lines ( stream -- seq ) |
---|---|
Next: | each-line ( ... quot: ( ... line -- ... ) -- ... ) |
Vocabulary
io
Inputs
None
Outputs
seq | a sequence of strings |
---|
Word description
Reads lines of text until from the input-stream until it is exhausted, collecting them in a sequence of strings.
Definition
: read-lines ( -- seq ) input-stream get stream-lines ; inline