Kxclib.List0
module Ops_piping : sig ... end
include module type of struct include Ops_piping end
include module type of struct include Stdlib.List end
val iota : int -> int t
val iota1 : int -> int t
deassoc_opt k l
removes entry keyed k
from l
, interpreted as an association list, and return v, l'
where v
is the value of the entry being removed or None
, and l'
is the list after the removal, or semantically unchanged if the key does not exist. note that entries in l'
may differ in order wrt. l
.
if there are multiple entries keyed k
, v
will be Some _
and l'
will differ from the original, but otherwise the behavior is unspecified
same as deassoc_opt
except using (==)
when comparing keys
same as deassoc_opt
but different return type
same as deassq_opt
but different return type
same as deassoc_opt
but throws Not_found
when the requested key does not exist
same as deassq_opt
but throws Not_found
when the requested key does not exist
val reduce : ('a -> 'b -> 'a) -> 'c t -> 'd
val reduce_opt : ('a -> 'b -> 'a) -> 'c t -> 'd option
val min_opt : ('a -> 'b -> int) -> 'c t -> 'd option
val max_opt : ('a -> 'b -> int) -> 'c t -> 'd option
val min : ('a -> 'a -> int) -> 'a t -> 'b
val max : ('a -> 'a -> int) -> 'a t -> 'b
val hd : 'a t -> 'b
val tl : 'a t -> 'b list
val take : int -> 'a t -> 'a list
pred list
returns the number of elements e
in list
that satisfies pred
val iter' : ('a -> unit) -> ('b -> unit) -> 'c t -> unit
val interpolate : 'a -> 'b t -> 'c list
val filteri : (int -> 'a -> bool) -> 'b t -> 'c list
val empty : 'a t -> bool
val return : 'a -> 'b t