IO facilities for reading from input sources.
The message reader takes an input source that is a function. The function must return successive characters from the source when called with 0 arguments. The function must support pushback of 1 character when called with 1 argument.
IO facilities for reading from input sources. The message reader takes an input source that is a function. The function must return successive characters from the source when called with 0 arguments. The function must support pushback of 1 character when called with 1 argument.
(input-stream in)
(input-stream in opts)
Returns an input stream source.
If :throw-on-eof? option is true (default) closes input if end of stream is reached and throws EOFException.
If :throw-on-eof? is false, the :eof-value (default nil) is returned.
If :trace-fn function is given, all read input is echoed to the given function as int value.
Returns an input stream source. If :throw-on-eof? option is true (default) closes input if end of stream is reached and throws EOFException. If :throw-on-eof? is false, the :eof-value (default nil) is returned. If :trace-fn function is given, all read input is echoed to the given function as int value.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close