Reasonably fast stream.
Parse integers separated by whitespaces.
Read integers from standard input.
Warning: if a line to be read contains more than 1,022 characters,
this function does not work properly. Use read-stdinck/io/read-stdin: () -> <exn,fsys> string
and parse-intsck/io/parse-ints: (s : string) -> exn list<int>
instead.
call read-untilck/io/read-until: (p : (char) -> bool) -> stream string
operation of the streamck/io/stream: HX1
effect.
Read an integer from a stream.
call skip-untilck/io/skip-until: (p : (char) -> bool) -> stream ()
operation of the streamck/io/stream: HX1
effect.
Read a string from a stream. This function first skips whitespaces, and then reads characters until reaching whitespace.
Input/Output
A sample code of
stream
:.