OpamStd.Listval 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
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.
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.mem with an equality function.
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