Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Pass_codegen.Enum
include module type of struct include Batteries.Enum end
module type Enumerable = sig ... end
type 'a enumerable = 'a t
type 'a mappable = 'a t
val iter : ('a -> unit) -> 'a t -> unit
val exists : ('a -> bool) -> 'a t -> bool
val for_all : ('a -> bool) -> 'a t -> bool
val fold : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'b
val reduce : ('a -> 'a -> 'a) -> 'a t -> 'a
val sum : int t -> int
val fsum : float t -> float
val kahan_sum : float t -> float
val iteri : (int -> 'a -> unit) -> 'a t -> unit
val foldi : (int -> 'a -> 'b -> 'b) -> 'b -> 'a t -> 'b
val find : ('a -> bool) -> 'a t -> 'a
val find_map : ('a -> 'b option) -> 'a t -> 'b
val is_empty : 'a t -> bool
val peek : 'a t -> 'a option
val get : 'a t -> 'a option
val get_exn : 'a t -> 'a
val push : 'a t -> 'a -> unit
val junk : 'a t -> unit
val force : 'a t -> unit
val drop : int -> 'a t -> unit
val empty : unit -> 'a t
val from : (unit -> 'a) -> 'a t
val from_while : (unit -> 'a option) -> 'a t
val from_loop : 'b -> ('b -> 'a * 'b) -> 'a t
val seq : 'a -> ('a -> 'a) -> ('a -> bool) -> 'a t
val unfold : 'b -> ('b -> ('a * 'b) option) -> 'a t
val init : int -> (int -> 'a) -> 'a t
val singleton : 'a -> 'a t
val repeat : ?times:int -> 'a -> 'a t
val to_object : 'a t -> < clone : 'b ; count : int ; next : 'a > as 'b
val of_object : < clone : 'b ; count : int ; next : 'a > as 'b -> 'a t
val combination : ?repeat:bool -> int -> int -> int list t
val count : 'a t -> int
val fast_count : 'a t -> bool
val hard_count : 'a t -> int
val range : ?until:int -> int -> int t
val arg_min : ('a -> 'b) -> 'a t -> 'a
val arg_max : ('a -> 'b) -> 'a t -> 'a
val (--) : int -> int -> int t
val (--^) : int -> int -> int t
val (--.) : (float * float) -> float -> float t
val (---) : int -> int -> int t
val (--~) : char -> char -> char t
val print :
?first:string ->
?last:string ->
?sep:string ->
('a BatInnerIO.output -> 'b -> unit) ->
'a BatInnerIO.output ->
'b t ->
unit
val print_at_most :
?first:string ->
?last:string ->
?sep:string ->
limit:int ->
('a BatInnerIO.output -> 'b -> unit) ->
'a BatInnerIO.output ->
'b t ->
unit
val ising : 'a -> 'a t
val lsing : (unit -> 'a) -> 'a t
collects each x, y
in this enumeration into respective lists xs, ys
. *