resetLib.reset : ('a,'b) istream -> ('a,'b) istream
Restart an istream.
An application reset istrm replaces the current state of
istrm with the value supplied when istrm was
constructed.
Never fails.
- reset(next(next
(mk_istream (fn x => x+1) 0 (concat "gsym" o int_to_string))));
> val it = <istream> : (int, string) istream
- state it;
> val it = "gsym0" : string
Perhaps the type of reset should be
('a,'b) istream -> unit.