Vocabularyio.
streams.
limitedInputsstream | an input stream |
limit | an integer |
OutputsWord descriptionChanges a decoder's stream to be a limited stream, or wraps
stream in a
limited-stream.
ExamplesLimiting a longer stream to length three:
USING: accessors continuations io io.streams.limited
io.streams.string kernel prettyprint ;
"123456" <string-reader> 3 limit-stream
100 swap stream-read .
"123"
DefinitionMethods