Handbook
Glossary
with-string-reader ( str quot -- )
Factor handbook
»
Input and output
»
String streams
Prev:
<string-writer> ( -- stream )
Next:
with-string-writer ( quot -- str )
Vocabulary
io
.
streams
.
string
Inputs
str
a
string
quot
a
quotation
Outputs
None
Word description
Calls the quotation in a new dynamic scope with
input-stream
rebound to an input stream reading
str
from beginning to end.
Definition
USING:
io
kernel
;
IN:
io.streams.string
:
with-string-reader
( str quot -- )
[
<string-reader>
]
dip
with-input-stream
;
inline