Module Network_pool.Map_set

Utilities for dealing with "multimaps" or mapsets.

type ('k, 'v, 'cmpS, 'cmpM) t = ( 'k, ( 'v, 'cmpS ) Core.Set.t, 'cmpM ) Core.Map.t

A map from 'ks to sets of 'vs, using the provided comparators.

val remove_exn : ( 'k, 'v, 'cmpS, 'cmpM ) t -> 'k -> 'v -> ( 'k, 'v, 'cmpS, 'cmpM ) t

Remove an element from a mapset.

val insert : ( 'v, 'cmpS ) Core.Set.comparator -> ( 'k, 'v, 'cmpS, 'cmpM ) t -> 'k -> 'v -> ( 'k, 'v, 'cmpS, 'cmpM ) t