package dune-rpc

  1. Overview
  2. Docs

Module Map.MultiSource

Sourcetype nonrec 'a t = 'a list t
Sourceval rev_union : 'a t -> 'a t -> 'a t
Sourceval cons : 'a t -> key -> 'a -> 'a t
Sourceval find : 'a t -> key -> 'a list
Sourceval add_all : 'a t -> key -> 'a list -> 'a t
Sourceval find_elt : 'a t -> f:('a -> bool) -> (key * 'a) option

find_elt m ~f linearly traverses the map m and the contained lists to find the first element e (in a list l, mapped to key k) such that f e = true. If such an e is found then the function returns Some (k,e), otherwise it returns None.

OCaml

Innovation. Community. Security.