Vocabularyio.streams.throwingInputs and outputsWord descriptionWraps the value stored in the
input-stream variable and causes a stream read that exhausts the input stream to throw a
stream-exhausted exception. The stream is left open after this combinator returns.
This example will throw a
stream-exhausted exception:
USING: io.streams.throwing prettyprint ;
"abc" [ [ 4 read ] throw-on-eof ] with-string-reader
Definition