sig
exception Empty_list
exception Invalid_index of int
exception Different_list_size of string
exception No_more_elements
type 'a t = 'a BatLazyList.node_t Lazy.t
and 'a node_t = Nil | Cons of 'a * 'a BatLazyList.t
type 'a enumerable = 'a t
val enum : 'a enumerable -> 'a BatEnum.t
val of_enum : 'a BatEnum.t -> 'a enumerable
type 'a mappable = 'a t
val map : ('a -> 'b) -> 'a mappable -> 'b mappable
val nil : 'a BatLazyList.t
val cons : 'a -> 'a BatLazyList.t -> 'a BatLazyList.t
val ( ^:^ ) : 'a -> 'a BatLazyList.t -> 'a BatLazyList.t
val peek : 'a BatLazyList.t -> 'a option
val get : 'a BatLazyList.t -> ('a * 'a BatLazyList.t) option
val from : (unit -> 'a) -> 'a BatLazyList.t
val from_while : (unit -> 'a option) -> 'a BatLazyList.t
val from_loop : 'a -> ('a -> 'b * 'a) -> 'b BatLazyList.t
val seq : 'a -> ('a -> 'a) -> ('a -> bool) -> 'a BatLazyList.t
val unfold : 'a -> ('a -> ('b * 'a) option) -> 'b BatLazyList.t
val init : int -> (int -> 'a) -> 'a BatLazyList.t
val make : int -> 'a -> 'a BatLazyList.t
val range : int -> int -> int BatLazyList.t
val iter : ('a -> 'b) -> 'a BatLazyList.t -> unit
val iteri : (int -> 'a -> 'b) -> 'a BatLazyList.t -> unit
val map : ('a -> 'b) -> 'a BatLazyList.t -> 'b BatLazyList.t
val mapi : (int -> 'a -> 'b) -> 'a BatLazyList.t -> 'b BatLazyList.t
val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b BatLazyList.t -> 'a
val fold_right : ('a -> 'b -> 'b) -> 'b -> 'a BatLazyList.t -> 'b
val mem : 'a -> 'a BatLazyList.t -> bool
val memq : 'a -> 'a BatLazyList.t -> bool
val find : ('a -> bool) -> 'a BatLazyList.t -> 'a
val rfind : ('a -> bool) -> 'a BatLazyList.t -> 'a
val find_exn : ('a -> bool) -> exn -> 'a BatLazyList.t -> 'a
val rfind_exn : ('a -> bool) -> exn -> 'a BatLazyList.t -> 'a
val findi : (int -> 'a -> bool) -> 'a BatLazyList.t -> int * 'a
val rfindi : (int -> 'a -> bool) -> 'a BatLazyList.t -> int * 'a
val index_of : 'a -> 'a BatLazyList.t -> int option
val index_ofq : 'a -> 'a BatLazyList.t -> int option
val rindex_of : 'a -> 'a BatLazyList.t -> int option
val rindex_ofq : 'a -> 'a BatLazyList.t -> int option
val next : 'a BatLazyList.t -> 'a BatLazyList.node_t
val length : 'a BatLazyList.t -> int
val is_empty : 'a BatLazyList.t -> bool
val would_at_fail : 'a BatLazyList.t -> int -> bool
val hd : 'a BatLazyList.t -> 'a
val tl : 'a BatLazyList.t -> 'a BatLazyList.t
val first : 'a BatLazyList.t -> 'a
val last : 'a BatLazyList.t -> 'a
val at : 'a BatLazyList.t -> int -> 'a
val nth : 'a BatLazyList.t -> int -> 'a
val assoc : 'a -> ('a * 'b) BatLazyList.t -> 'b
val assq : 'a -> ('a * 'b) BatLazyList.t -> 'b
val mem_assoc : 'a -> ('a * 'b) BatLazyList.t -> bool
val mem_assq : 'a -> ('a * 'b) BatLazyList.t -> bool
val rev : 'a BatLazyList.t -> 'a BatLazyList.t
val eager_append : 'a BatLazyList.t -> 'a BatLazyList.t -> 'a BatLazyList.t
val rev_append : 'a BatLazyList.t -> 'a BatLazyList.t -> 'a BatLazyList.t
val append : 'a BatLazyList.t -> 'a BatLazyList.t -> 'a BatLazyList.t
val ( ^@^ ) : 'a BatLazyList.t -> 'a BatLazyList.t -> 'a BatLazyList.t
val concat : 'a BatLazyList.t BatLazyList.t -> 'a BatLazyList.t
val flatten : 'a BatLazyList.t list -> 'a BatLazyList.t
val split_at :
int -> 'a BatLazyList.t -> 'a BatLazyList.t * 'a BatLazyList.t
val split_nth :
int -> 'a BatLazyList.t -> 'a BatLazyList.t * 'a BatLazyList.t
val unique : ?cmp:('a -> 'a -> int) -> 'a BatLazyList.t -> 'a BatLazyList.t
val remove : 'a -> 'a BatLazyList.t -> 'a BatLazyList.t
val remove_if : ('a -> bool) -> 'a BatLazyList.t -> 'a BatLazyList.t
val remove_all : 'a -> 'a BatLazyList.t -> 'a BatLazyList.t
val remove_all_such : ('a -> bool) -> 'a BatLazyList.t -> 'a BatLazyList.t
val take : int -> 'a BatLazyList.t -> 'a BatLazyList.t
val drop : int -> 'a BatLazyList.t -> 'a BatLazyList.t
val take_while : ('a -> bool) -> 'a BatLazyList.t -> 'a BatLazyList.t
val drop_while : ('a -> bool) -> 'a BatLazyList.t -> 'a BatLazyList.t
val to_list : 'a BatLazyList.t -> 'a list
val to_stream : 'a BatLazyList.t -> 'a Stream.t
val to_array : 'a BatLazyList.t -> 'a array
val enum : 'a BatLazyList.t -> 'a BatEnum.t
val of_list : 'a list -> 'a BatLazyList.t
val of_stream : 'a Stream.t -> 'a BatLazyList.t
val of_enum : 'a BatEnum.t -> 'a BatLazyList.t
val eager_of_list : 'a list -> 'a BatLazyList.t
val of_array : 'a array -> 'a BatLazyList.t
val filter : ('a -> bool) -> 'a BatLazyList.t -> 'a BatLazyList.t
val exists : ('a -> bool) -> 'a BatLazyList.t -> bool
val for_all : ('a -> bool) -> 'a BatLazyList.t -> bool
val filter_map : ('a -> 'b option) -> 'a BatLazyList.t -> 'b BatLazyList.t
val eternity : unit BatLazyList.t
val sort : ?cmp:('a -> 'a -> int) -> 'a BatLazyList.t -> 'a BatLazyList.t
val stable_sort : ('a -> 'a -> int) -> 'a BatLazyList.t -> 'a BatLazyList.t
val map2 :
('a -> 'b -> 'c) ->
'a BatLazyList.t -> 'b BatLazyList.t -> 'c BatLazyList.t
val iter2 :
('a -> 'b -> unit) -> 'a BatLazyList.t -> 'b BatLazyList.t -> unit
val fold_left2 :
('a -> 'b -> 'c -> 'a) ->
'a -> 'b BatLazyList.t -> 'c BatLazyList.t -> 'a
val fold_right2 :
('a -> 'b -> 'c -> 'c) ->
'a BatLazyList.t -> 'b BatLazyList.t -> 'c -> 'c
val for_all2 :
('a -> 'b -> bool) -> 'a BatLazyList.t -> 'b BatLazyList.t -> bool
val exists2 :
('a -> 'b -> bool) -> 'a BatLazyList.t -> 'b BatLazyList.t -> bool
val combine :
'a BatLazyList.t -> 'b BatLazyList.t -> ('a * 'b) BatLazyList.t
val uncombine :
('a * 'b) BatLazyList.t -> 'a BatLazyList.t * 'b BatLazyList.t
val print :
?first:string ->
?last:string ->
?sep:string ->
('a BatInnerIO.output -> 'b -> unit) ->
'a BatInnerIO.output -> 'b BatLazyList.t -> unit
module Exceptionless :
sig
val find : ('a -> bool) -> 'a BatLazyList.t -> 'a option
val rfind : ('a -> bool) -> 'a BatLazyList.t -> 'a option
val findi :
(int -> 'a -> bool) -> 'a BatLazyList.t -> (int * 'a) option
val rfindi :
(int -> 'a -> bool) -> 'a BatLazyList.t -> (int * 'a) option
val split_at :
int ->
'a BatLazyList.t ->
[ `Invalid_index of int | `Ok of 'a BatLazyList.t * 'a BatLazyList.t ]
val at :
'a BatLazyList.t -> int -> [ `Invalid_index of int | `Ok of 'a ]
val assoc : 'a -> ('a * 'b) BatLazyList.t -> 'b option
val assq : 'a -> ('a * 'b) BatLazyList.t -> 'b option
end
module Labels :
sig
val iter : f:('a -> 'b) -> 'a BatLazyList.t -> unit
val iteri : f:(int -> 'a -> 'b) -> 'a BatLazyList.t -> unit
val map : f:('a -> 'b) -> 'a BatLazyList.t -> 'b BatLazyList.t
val mapi : f:(int -> 'a -> 'b) -> 'a BatLazyList.t -> 'b BatLazyList.t
val fold_left : f:('a -> 'b -> 'a) -> init:'a -> 'b BatLazyList.t -> 'a
val fold_right :
f:('a -> 'b -> 'b) -> init:'b -> 'a BatLazyList.t -> 'b
val find : f:('a -> bool) -> 'a BatLazyList.t -> 'a
val rfind : f:('a -> bool) -> 'a BatLazyList.t -> 'a
val find_exn : f:('a -> bool) -> exn -> 'a BatLazyList.t -> 'a
val rfind_exn : f:('a -> bool) -> exn -> 'a BatLazyList.t -> 'a
val findi : f:(int -> 'a -> bool) -> 'a BatLazyList.t -> int * 'a
val rfindi : f:(int -> 'a -> bool) -> 'a BatLazyList.t -> int * 'a
val remove_if : f:('a -> bool) -> 'a BatLazyList.t -> 'a BatLazyList.t
val remove_all_such :
f:('a -> bool) -> 'a BatLazyList.t -> 'a BatLazyList.t
val take_while : f:('a -> bool) -> 'a BatLazyList.t -> 'a BatLazyList.t
val drop_while : f:('a -> bool) -> 'a BatLazyList.t -> 'a BatLazyList.t
val filter : f:('a -> bool) -> 'a BatLazyList.t -> 'a BatLazyList.t
val exists : f:('a -> bool) -> 'a BatLazyList.t -> bool
val for_all : f:('a -> bool) -> 'a BatLazyList.t -> bool
val filter_map :
f:('a -> 'b option) -> 'a BatLazyList.t -> 'b BatLazyList.t
val map2 :
f:('a -> 'b -> 'c) ->
'a BatLazyList.t -> 'b BatLazyList.t -> 'c BatLazyList.t
val iter2 :
f:('a -> 'b -> unit) -> 'a BatLazyList.t -> 'b BatLazyList.t -> unit
val fold_right2 :
f:('a -> 'b -> 'c -> 'c) ->
'a BatLazyList.t -> 'b BatLazyList.t -> init:'c -> 'c
val for_all2 :
f:('a -> 'b -> bool) -> 'a BatLazyList.t -> 'b BatLazyList.t -> bool
val exists2 :
f:('a -> 'b -> bool) -> 'a BatLazyList.t -> 'b BatLazyList.t -> bool
module Exceptionless :
sig
val find : f:('a -> bool) -> 'a BatLazyList.t -> 'a option
val rfind : f:('a -> bool) -> 'a BatLazyList.t -> 'a option
val findi :
f:(int -> 'a -> bool) -> 'a BatLazyList.t -> (int * 'a) option
val rfindi :
f:(int -> 'a -> bool) -> 'a BatLazyList.t -> (int * 'a) option
val split_at :
int ->
'a BatLazyList.t ->
[ `Invalid_index of int
| `Ok of 'a BatLazyList.t * 'a BatLazyList.t ]
val at :
'a BatLazyList.t -> int -> [ `Invalid_index of int | `Ok of 'a ]
val assoc : 'a -> ('a * 'b) BatLazyList.t -> 'b option
val assq : 'a -> ('a * 'b) BatLazyList.t -> 'b option
end
end
end