Batteries user guide : BatSeq

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