Skip to main content
Module Extstdlib.Stream
include module type of Stream with type 'a t = 'a Stream.t
exception Error of stringval from : (int -> 'a option) -> 'a tval of_list : 'a list -> 'a tval of_string : string -> char tval of_bytes : bytes -> char tval of_channel : Stdlib.in_channel -> char tval iter : ('a -> unit) -> 'a t -> unitval peek : 'a t -> 'a optionval npeek : int -> 'a t -> 'a listval iapp : 'a t -> 'a t -> 'a tval icons : 'a -> 'a t -> 'a tval lapp : (unit -> 'a t) -> 'a t -> 'a tval lcons : (unit -> 'a) -> 'a t -> 'a tval lsing : (unit -> 'a) -> 'a tval slazy : (unit -> 'a t) -> 'a tval dump : ('a -> unit) -> 'a t -> unitval map : ('a -> 'b) -> 'a Stream.t -> 'b Stream.tval fold : ('a -> 'b -> 'a) -> 'a -> 'b Stream.t -> 'aval reduce : ('a -> 'a -> 'a) -> 'a Stream.t -> 'a