sig
type 'a t = 'a Stream.t
val to_stream : 'a t -> 'a Stream.t
val of_stream : 'a Stream.t -> 'a t
exception Failure
exception Error of string
exception Expected_streams_of_equal_length
val next : 'a Biocaml_stream.t -> 'a option
val next_exn : 'a Biocaml_stream.t -> 'a
val peek : 'a Biocaml_stream.t -> 'a option
val npeek : 'a Biocaml_stream.t -> int -> 'a list
val junk : 'a Biocaml_stream.t -> unit
val count : 'a Biocaml_stream.t -> int
val is_empty : 'a Biocaml_stream.t -> bool
val from : (int -> 'a option) -> 'a Biocaml_stream.t
val of_list : 'a list -> 'a Biocaml_stream.t
val of_string : string -> char Biocaml_stream.t
val of_channel : Pervasives.in_channel -> char Biocaml_stream.t
val strings_of_channel :
?buffer_size:int -> Pervasives.in_channel -> string Biocaml_stream.t
val range : ?until:int -> int -> int Biocaml_stream.t
val empty : unit -> 'a Biocaml_stream.t
val init : int -> f:(int -> 'a) -> 'a Biocaml_stream.t
val singleton : 'a -> 'a Biocaml_stream.t
val unfold : 'a -> f:('a -> ('b * 'a) option) -> 'b Biocaml_stream.t
val unfoldi :
'a -> f:(int -> 'a -> ('b * 'a) option) -> 'b Biocaml_stream.t
val of_lazy : 'a Biocaml_stream.t lazy_t -> 'a Biocaml_stream.t
val iter : 'a Biocaml_stream.t -> f:('a -> unit) -> unit
val iter2 :
'a Biocaml_stream.t ->
'b Biocaml_stream.t -> f:('a -> 'b -> unit) -> unit
val iter2_exn :
'a Biocaml_stream.t ->
'b Biocaml_stream.t -> f:('a -> 'b -> unit) -> unit
val fold : 'a Biocaml_stream.t -> init:'b -> f:('b -> 'a -> 'b) -> 'b
val fold2 :
'a Biocaml_stream.t ->
'b Biocaml_stream.t -> init:'c -> f:('c -> 'a -> 'b -> 'c) -> 'c
val fold2_exn :
'a Biocaml_stream.t ->
'b Biocaml_stream.t -> init:'c -> f:('c -> 'a -> 'b -> 'c) -> 'c
val scanl :
'a Biocaml_stream.t ->
init:'b -> f:('b -> 'a -> 'b) -> 'b Biocaml_stream.t
val scan : 'a Biocaml_stream.t -> f:('a -> 'a -> 'a) -> 'a Biocaml_stream.t
val iteri : 'a Biocaml_stream.t -> f:(int -> 'a -> unit) -> unit
val iter2i_exn :
'a Biocaml_stream.t ->
'b Biocaml_stream.t -> f:(int -> int -> 'a -> 'b -> unit) -> unit
val iter2i :
'a Biocaml_stream.t ->
'b Biocaml_stream.t -> f:(int -> int -> 'a -> 'b -> unit) -> unit
val foldi :
'a Biocaml_stream.t -> init:'b -> f:(int -> 'b -> 'a -> 'b) -> 'b
val fold2i_exn :
'a Biocaml_stream.t ->
'b Biocaml_stream.t ->
init:'c -> f:(int -> int -> 'c -> 'a -> 'b -> 'c) -> 'c
val fold2i :
'a Biocaml_stream.t ->
'b Biocaml_stream.t ->
init:'c -> f:(int -> int -> 'c -> 'a -> 'b -> 'c) -> 'c
val reduce : 'a Biocaml_stream.t -> f:('a -> 'a -> 'a) -> 'a
val sum : int Biocaml_stream.t -> int
val fsum : float Biocaml_stream.t -> float
val exists : 'a Biocaml_stream.t -> f:('a -> bool) -> bool
val for_all : 'a Biocaml_stream.t -> f:('a -> bool) -> bool
val find : 'a Biocaml_stream.t -> f:('a -> bool) -> 'a option
val find_exn : 'a Biocaml_stream.t -> f:('a -> bool) -> 'a
val find_map : 'a Biocaml_stream.t -> f:('a -> 'b option) -> 'b option
val take : 'a Biocaml_stream.t -> n:int -> 'a Biocaml_stream.t
val take_while :
'a Biocaml_stream.t -> f:('a -> bool) -> 'a Biocaml_stream.t
val drop : 'a Biocaml_stream.t -> n:int -> unit
val drop_while : 'a Biocaml_stream.t -> f:('a -> bool) -> unit
val skip : 'a Biocaml_stream.t -> n:int -> 'a Biocaml_stream.t
val skip_while :
'a Biocaml_stream.t -> f:('a -> bool) -> 'a Biocaml_stream.t
val take_whilei :
'a Biocaml_stream.t -> f:(int -> 'a -> bool) -> 'a Biocaml_stream.t
val drop_whilei : 'a Biocaml_stream.t -> f:(int -> 'a -> bool) -> unit
val skip_whilei :
'a Biocaml_stream.t -> f:(int -> 'a -> bool) -> 'a Biocaml_stream.t
val span :
'a Biocaml_stream.t ->
f:('a -> bool) -> 'a Biocaml_stream.t * 'a Biocaml_stream.t
val group :
'a Biocaml_stream.t ->
f:('a -> 'b) -> 'a Biocaml_stream.t Biocaml_stream.t
val group_by :
'a Biocaml_stream.t ->
eq:('a -> 'a -> bool) -> 'a Biocaml_stream.t Biocaml_stream.t
val map : 'a Biocaml_stream.t -> f:('a -> 'b) -> 'b Biocaml_stream.t
val mapi :
'a Biocaml_stream.t -> f:(int -> 'a -> 'b) -> 'b Biocaml_stream.t
val filter : 'a Biocaml_stream.t -> f:('a -> bool) -> 'a Biocaml_stream.t
val filter_map :
'a Biocaml_stream.t -> f:('a -> 'b option) -> 'b Biocaml_stream.t
val append :
'a Biocaml_stream.t -> 'a Biocaml_stream.t -> 'a Biocaml_stream.t
val concat : 'a Biocaml_stream.t Biocaml_stream.t -> 'a Biocaml_stream.t
val combine :
'a Biocaml_stream.t * 'b Biocaml_stream.t -> ('a * 'b) Biocaml_stream.t
val uncombine :
('a * 'b) Biocaml_stream.t -> 'a Biocaml_stream.t * 'b Biocaml_stream.t
val merge :
'a Biocaml_stream.t ->
'a Biocaml_stream.t -> cmp:('a -> 'a -> int) -> 'a Biocaml_stream.t
val partition :
'a Biocaml_stream.t ->
f:('a -> bool) -> 'a Biocaml_stream.t * 'a Biocaml_stream.t
val uniq : 'a Biocaml_stream.t -> 'a Biocaml_stream.t
val to_list : 'a Biocaml_stream.t -> 'a list
val result_to_exn :
('output, 'error) Core.Std.Result.t Biocaml_stream.t ->
error_to_exn:('error -> exn) -> 'output Biocaml_stream.t
module Infix :
sig
val ( -- ) : int -> int -> int Biocaml_stream.t
val ( --^ ) : int -> int -> int Biocaml_stream.t
val ( --. ) : float * float -> float -> float Biocaml_stream.t
val ( --- ) : int -> int -> int Biocaml_stream.t
val ( /@ ) : 'a Biocaml_stream.t -> ('a -> 'b) -> 'b Biocaml_stream.t
val ( // ) : 'a Biocaml_stream.t -> ('a -> bool) -> 'a Biocaml_stream.t
val ( //@ ) :
'a Biocaml_stream.t -> ('a -> 'b option) -> 'b Biocaml_stream.t
end
end