package sequence

  1. Overview
  2. Docs
type +'a t
val from_iter : (('a -> unit) -> unit) -> 'a t
val empty : 'a t
val singleton : 'a -> 'a t
val repeat : 'a -> 'a t
val iterate : ('a -> 'a) -> 'a -> 'a t
val forever : (unit -> 'b) -> 'b t
val cycle : 'a t -> 'a t
val iter : ('a -> unit) -> 'a t -> unit
val iteri : (int -> 'a -> unit) -> 'a t -> unit
val fold : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'b
val foldi : ('b -> int -> 'a -> 'b) -> 'b -> 'a t -> 'b
val map : ('a -> 'b) -> 'a t -> 'b t
val mapi : (int -> 'a -> 'b) -> 'a t -> 'b t
val for_all : ('a -> bool) -> 'a t -> bool
val exists : ('a -> bool) -> 'a t -> bool
val length : 'a t -> int
val is_empty : 'a t -> bool
val filter : ('a -> bool) -> 'a t -> 'a t
val append : 'a t -> 'a t -> 'a t
val concat : 'a t t -> 'a t
val flatMap : ('a -> 'b t) -> 'a t -> 'b t
val intersperse : 'a t -> 'a -> 'a t
val persistent : 'a t -> 'a t
val product : 'a t -> 'b t -> ('a * 'b) t
val unfoldr : ('b -> ('a * 'b) option) -> 'b -> 'a t
val max : ?lt:('a -> 'a -> bool) -> 'a t -> 'a -> 'a
val min : ?lt:('a -> 'a -> bool) -> 'a t -> 'a -> 'a
val take : int -> 'a t -> 'a t
val drop : int -> 'a t -> 'a t
val rev : 'a t -> 'a t
val to_list : 'a t -> 'a list
val to_rev_list : 'a t -> 'a list
val of_list : 'a list -> 'a t
val to_array : 'a t -> 'a array
val of_array : 'a array -> 'a t
val of_array_i : 'a array -> (int * 'a) t
val array_slice : 'a array -> int -> int -> 'a t
val of_stream : 'a Stream.t -> 'a t
val to_stream : 'a t -> 'a Stream.t
val to_stack : 'a Stack.t -> 'a t -> unit
val of_stack : 'a Stack.t -> 'a t
val to_queue : 'a Queue.t -> 'a t -> unit
val of_queue : 'a Queue.t -> 'a t
val hashtbl_add : ('a, 'b) Hashtbl.t -> ('a * 'b) t -> unit
val hashtbl_replace : ('a, 'b) Hashtbl.t -> ('a * 'b) t -> unit
val to_hashtbl : ('a * 'b) t -> ('a, 'b) Hashtbl.t
val of_hashtbl : ('a, 'b) Hashtbl.t -> ('a * 'b) t
val hashtbl_keys : ('a, 'b) Hashtbl.t -> 'a t
val hashtbl_values : ('a, 'b) Hashtbl.t -> 'b t
val of_str : string -> char t
val to_str : char t -> string
val of_in_channel : Pervasives.in_channel -> char t
val to_buffer : char t -> Buffer.t -> unit
val int_range : start:int -> stop:int -> int t
val of_set : (module Set.S with type elt = 'a and type t = 'b) -> 'b -> 'a t
val to_set : (module Set.S with type elt = 'a and type t = 'b) -> 'a t -> 'b
module Set : sig ... end
module Map : sig ... end
val random_int : int -> int t
val random_bool : bool t
val random_float : float -> float t
val random_array : 'a array -> 'a t
val random_list : 'a list -> 'a t
module TypeClass : sig ... end
val pp_seq : ?sep:string -> (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit
OCaml

Innovation. Community. Security.