Handbook
Glossary
<string-reader> ( str -- stream )
Factor handbook
»
Input and output
»
String streams
Next:
<string-writer> ( -- stream )
Vocabulary
io
.
streams
.
string
Inputs
str
a
string
Outputs
stream
an input stream
Word description
Creates a new stream for reading
str
from beginning to end.
Notes
The implementation exploits the ability of string buffers to respond to the input stream protocol by reading characters from the end of the buffer.
Definition
USING:
kernel
;
IN:
io.streams.string
:
<string-reader>
( str -- stream )
0
string-reader
boa
;