Module Export_for_backends.Seq
include module type of struct include Stdlib.Seq end
type !'a t = unit -> 'a nodeand !'a node = 'a Stdlib__Seq.node = | Nil| Cons of 'a * 'a t
val is_empty : 'a t -> boolval uncons : 'a t -> ('a * 'a t) optionval iter : ('a -> unit) -> 'a t -> unitval fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'aval iteri : (int -> 'a -> unit) -> 'a t -> unitval fold_lefti : ('b -> int -> 'a -> 'b) -> 'b -> 'a t -> 'bval find : ('a -> bool) -> 'a t -> 'a optionval find_map : ('a -> 'b option) -> 'a t -> 'b optionval iter2 : ('a -> 'b -> unit) -> 'a t -> 'b t -> unitval fold_left2 : ('a -> 'b -> 'c -> 'a) -> 'a -> 'b t -> 'c t -> 'aval exists2 : ('a -> 'b -> bool) -> 'a t -> 'b t -> boolval equal : ('a -> 'b -> bool) -> 'a t -> 'b t -> boolval compare : ('a -> 'b -> int) -> 'a t -> 'b t -> intval cons : 'a -> 'a t -> 'a tval init : int -> (int -> 'a) -> 'a tval unfold : ('b -> ('a * 'b) option) -> 'b -> 'a tval forever : (unit -> 'a) -> 'a tval iterate : ('a -> 'a) -> 'a -> 'a tval map : ('a -> 'b) -> 'a t -> 'b tval mapi : (int -> 'a -> 'b) -> 'a t -> 'b tval filter : ('a -> bool) -> 'a t -> 'a tval filter_map : ('a -> 'b option) -> 'a t -> 'b tval scan : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'b tval take_while : ('a -> bool) -> 'a t -> 'a tval drop_while : ('a -> bool) -> 'a t -> 'a tval group : ('a -> 'a -> bool) -> 'a t -> 'a t tval memoize : 'a t -> 'a tval transpose : 'a t t -> 'a t tval concat : 'a t t -> 'a tval flat_map : ('a -> 'b t) -> 'a t -> 'b tval concat_map : ('a -> 'b t) -> 'a t -> 'b tval zip : 'a t -> 'b t -> ('a * 'b) tval map2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c tval interleave : 'a t -> 'a t -> 'a tval sorted_merge : ('a -> 'a -> int) -> 'a t -> 'a t -> 'a tval product : 'a t -> 'b t -> ('a * 'b) tval map_product : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c tval unzip : ('a * 'b) t -> 'a t * 'b tval split : ('a * 'b) t -> 'a t * 'b tval partition_map : ('a -> ('b, 'c) Stdlib.Either.t) -> 'a t -> 'b t * 'c tval partition : ('a -> bool) -> 'a t -> 'a t * 'a tval of_dispenser : (unit -> 'a option) -> 'a tval to_dispenser : 'a t -> unit -> 'a optionval drop : 'a. int -> 'a t -> 'a tval exists : 'a. ('a -> bool) -> 'a Stdlib.Seq.t -> boolval take : 'a. int -> 'a t -> 'a tval for_all : 'a. ('a -> bool) -> 'a Stdlib.Seq.t -> boolval append : 'a t -> (unit -> 'b node) -> 'b tval for_all2 : ('a -> 'b -> bool) -> 'c t -> 'd t -> bool