package sequence

  1. Overview
  2. Docs
type !'a t = ('a -> unit) -> unit
type !'a sequence = 'a t
type (!'a, !'b) t2 = ('a -> 'b -> unit) -> unit
val from_iter : (('a -> unit) -> unit) -> 'a t
val from_fun : (unit -> 'a option) -> '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 flatten : 'a t t -> 'a t
val flatMap : ('a -> 'b t) -> 'a t -> 'b t
val fmap : ('a -> 'b option) -> 'a t -> 'b t
val intersperse : 'a -> 'a t -> 'a t
val persistent : 'a t -> 'a t
val sort : ?cmp:('a -> 'a -> int) -> 'a t -> 'a t
val sort_uniq : ?cmp:('a -> 'a -> int) -> 'a t -> 'a t
val group : ?eq:('a -> 'a -> bool) -> 'a t -> 'a list t
val uniq : ?eq:('a -> 'a -> bool) -> 'a t -> 'a t
val product : 'a t -> 'b t -> ('a * 'b) t
val join : join_row:('a -> 'b -> 'c option) -> 'a t -> 'b t -> 'c t
val unfoldr : ('b -> ('a * 'b) option) -> 'b -> 'a t
val scan : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'b 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 empty2 : ('a, 'b) t2
val is_empty2 : ('a, 'b) t2 -> bool
val length2 : ('a, 'b) t2 -> int
val zip : ('a, 'b) t2 -> ('a * 'b) t
val unzip : ('a * 'b) t -> ('a, 'b) t2
val zip_i : 'a t -> (int, 'a) t2
val fold2 : ('c -> 'a -> 'b -> 'c) -> 'c -> ('a, 'b) t2 -> 'c
val iter2 : ('a -> 'b -> unit) -> ('a, 'b) t2 -> unit
val map2 : ('a -> 'b -> 'c) -> ('a, 'b) t2 -> 'c t
val map2_2 : ('a -> 'b -> 'c) -> ('a -> 'b -> 'd) -> ('a, 'b) t2 -> ('c, 'd) t2
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 of_array2 : 'a array -> (int, 'a) t2
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 to_hashtbl2 : ('a, 'b) t2 -> ('a, 'b) Hashtbl.t
val of_hashtbl : ('a, 'b) Hashtbl.t -> ('a * 'b) t
val of_hashtbl2 : ('a, 'b) Hashtbl.t -> ('a, 'b) t2
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
module Infix : sig ... end
val pp_seq : ?sep:string -> (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit
OCaml

Innovation. Community. Security.