package io

  1. Overview
  2. Docs
type 'a t = 'a list
module Public : sig ... end
val partition : 'a list -> f:('a -> bool) -> 'a list * 'a list
val fold_left : 'a list -> init:'b -> f:('c -> 'a -> 'c) -> 'd
val fold_right : 'a list -> init:'b -> f:('a -> 'c -> 'c) -> 'd
val fold : 'a list -> init:'b -> f:('b -> 'a -> 'b) -> 'b
val foldl : 'a list -> init:'b -> f:('b -> 'a -> 'b) -> 'b
val foldr : 'a list -> init:'b -> f:('a -> 'b -> 'b) -> 'b
val rev : 'a list -> 'a list
val len : 'a list -> int
val range : int -> int -> int list
val iota : int -> int list
val map : 'a list -> f:('b -> 'c) -> 'd list
val nth : 'a list -> int -> 'b
val iter : 'a list -> f:('a -> unit) -> unit
val filter_map : 'a list -> f:('b -> 'c option) -> 'd list
val reduce : 'a list -> f:('b -> 'c -> 'b) -> 'd option
val reduce_exn : 'a list -> f:('a -> 'a -> 'a) -> 'b
val find : bool list -> ?key:(bool -> bool) -> f:(bool -> bool -> bool) -> bool option
val min : ?key:('a -> 'b) -> 'c list -> 'd option
val max : ?key:('a -> 'b) -> 'c list -> 'd option
val max_all : ?key:('a -> 'b) -> 'c list -> 'c list
val group_with : 'a list -> f:('b -> 'c -> bool) -> 'c list list
val take : 'a list -> int -> 'a list
OCaml

Innovation. Community. Security.