Handbook
Glossary
each-block ( ... quot: ( ... block -- ... ) -- ... )
Factor handbook
»
Input and output
»
Streams
»
Stream utilities
Prev:
read-contents ( -- seq )
Next:
stream-copy* ( in out -- )
Vocabulary
io
Inputs
quot
a
quotation
with stack effect
( ... block -- ... )
Outputs
None
Word description
Calls the quotation with successive blocks of data, until the current
input-stream
is exhausted.
Definition
USING:
kernel
namespaces
;
IN:
io
:
each-block
( ... quot: ( ... block -- ... ) -- ... )
input-stream
get
swap
each-stream-block
;
inline