Handbook
Glossary
<duplex-stream> ( in out -- duplex-stream )
Factor handbook
»
Input and output
»
Duplex streams
Prev:
duplex-stream
Next:
with-stream ( stream quot -- )
Vocabulary
io
.
streams
.
duplex
Inputs
in
an input stream
out
an output stream
Outputs
duplex-stream
a
duplex-stream
Word description
Creates a duplex stream. Writing to a duplex stream will write to
out
, and reading from a duplex stream will read from
in
. Closing a duplex stream closes both the input and output streams.
Definition
USING:
kernel
;
IN:
io.streams.duplex
:
<duplex-stream>
( in out -- duplex-stream )
\
duplex-stream
boa
;
inline