Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
each-line ( ... quot: ( ... line -- ... ) -- ... )
Factor documentation
>
Factor handbook
>
Input and output
>
Streams
>
Stream utilities
Prev:
lines ( -- seq )
Next:
stream-contents ( stream -- seq )
Vocabulary
io
Inputs and outputs
quot
a
quotation
with stack effect
( ... line -- ... )
Word description
Calls the quotation with successive lines of text, until the current
input-stream
is exhausted.
Definition
USING:
kernel
namespaces
;
IN:
io
:
each-line
( ... quot: ( ... line -- ... ) -- ... )
input-stream
get
swap
each-stream-line
;
inline