package batteries

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type !'a t = unit -> 'a node
and !'a node = 'a BatSeq.node =
  1. | Nil
  2. | Cons of 'a * 'a t
type !'a mappable = 'a t
val enum : 'a t -> 'a BatEnum.t
val length : 'a t -> int
val is_empty : 'a t -> bool
val append : 'a t -> 'a t -> 'a t
val concat : 'a t t -> 'a t
val flatten : 'a t t -> 'a t
val nil : 'a t
val cons : 'a -> 'a t -> 'a t
val make : int -> 'a -> 'a t
val init : int -> (int -> 'a) -> 'a t
val of_list : 'a list -> 'a t
val iter : ('a -> unit) -> 'a t -> unit
val iteri : (int -> 'a -> unit) -> 'a t -> unit
val iter2 : ('a -> 'b -> unit) -> 'a t -> 'b t -> unit
val map : ('a -> 'b) -> 'a t -> 'b t
val mapi : (int -> 'a -> 'b) -> 'a t -> 'b t
val map2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c t
val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
val fold_right : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val equal : ?eq:('a -> 'a -> bool) -> 'a t -> 'a t -> bool
val for_all : ('a -> bool) -> 'a t -> bool
val exists : ('a -> bool) -> 'a t -> bool
val mem : 'a -> 'a t -> bool
val find : ('a -> bool) -> 'a t -> 'a option
val find_map : ('a -> 'b option) -> 'a t -> 'b option
val filter : ('a -> bool) -> 'a t -> 'a t
val filter_map : ('a -> 'b option) -> 'a t -> 'b t
val assoc : 'a -> ('a * 'b) t -> 'b option
val take : int -> 'a t -> 'a t
val drop : int -> 'a t -> 'a t
val take_while : ('a -> bool) -> 'a t -> 'a t
val drop_while : ('a -> bool) -> 'a t -> 'a t
val split : ('a * 'b) t -> 'a t * 'b t
val print : ?first:string -> ?last:string -> ?sep:string -> ('a BatInnerIO.output -> 'b -> unit) -> 'a BatInnerIO.output -> 'b t -> unit
module Infix = BatSeq.Infix
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 (//) : 'a t -> ('a -> bool) -> 'a t
val (/@) : 'a t -> ('a -> 'b) -> 'b t
val (@/) : ('a -> 'b) -> 'a t -> 'b t
val (//@) : 'a t -> ('a -> 'b option) -> 'b t
val (@//) : ('a -> 'b option) -> 'a t -> 'b t
module Exceptionless = BatSeq.Exceptionless
val hd : 'a BatSeq.t -> 'a option
val tl : 'a BatSeq.t -> 'a BatSeq.t option
val first : 'a BatSeq.t -> 'a option
val last : 'a BatSeq.t -> 'a option
val at : 'a BatSeq.t -> int -> 'a option
val reduce : ('a -> 'a -> 'a) -> 'a BatSeq.t -> 'a option
val max : 'a BatSeq.t -> 'a option
val min : 'a BatSeq.t -> 'a option
val combine : 'a BatSeq.t -> 'b BatSeq.t -> ('a * 'b) BatSeq.t option
OCaml

Innovation. Community. Security.