package opam-core
Install
dune-project
Dependency
Authors
-
David Allsopp
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRaja Boujbel <raja.boujbel@ocamlpro.com>
-
KKate Deplaix <kit-ty-kate@outlook.com>
-
RRoberto Di Cosmo <roberto@dicosmo.org>
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
LLouis Gesbert <louis.gesbert@ocamlpro.com>
-
FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
-
AAnil Madhavapeddy <anil@recoil.org>
-
GGuillem Rieu <guillem.rieu@ocamlpro.com>
-
RRalf Treinen <ralf.treinen@pps.jussieu.fr>
-
FFrederic Tuong <tuong@users.gforge.inria.fr>
Maintainers
Sources
md5=708dfb9799ebb5b9fccbdac63d0bf1e8
sha512=0b15627c4a31d3abcdbb5885bf2e7f4dee9ffddad2144855d1e1e18d66edc379e3a2b0a378097c35897e571f856b61aadabb47672d75401f6f6231f33ae475c8
doc/opam-core/OpamStd/List/index.html
Module OpamStd.ListSource
val concat_map :
?left:string ->
?right:string ->
?nil:string ->
?last_sep:string ->
string ->
('a -> string) ->
'a list ->
stringConvert list items to string and concat. concat_map sep f x is equivalent to String.concat sep (List.map f x) but tail-rec.
Removes consecutive duplicates in a list
Sorts the list, removing duplicates
Retrieves Some values from a list
Returns the first non-None value returned by the passed function on the elements of the passed list.
Like find_map, but returns Some _ if succeeded and None if failed.
Insert a value in an ordered list
Inserts a value at the given index (starting from 0) in the list (start or end if index < 0 or > length respectively). Not tail-recursive
Like List.assoc with an equality function.
Like assoc, but returning option instead of raising Not_found
Like assoc, but as an option, and also returns the list with the binding removed, e.g. equivalent to (assoc_opt x l, remove_assoc x l) (but tail-recursive and more efficient)
Like assoc, but returns a boolean instead of associated value
remove_assoc eq k l removes first association of k from list l (tail-recursive).
update_assoc key value list updates the first value bound to key in the associative list list, or appends (key, value) if the key is not bound.
Like pick_assoc, but with a test function that takes a list element