BiMultiMap.delete

You're seeing just the function delete, go back to BiMultiMap module for more information.

Specs

delete(t(), {k(), v()}) :: t()

Convenience shortcut for delete/3.

Link to this function

delete(bimultimap, key, value)

View Source

Specs

delete(t(), k(), v()) :: t()

Deletes {key, value} pair from bimultimap.

If the key does not exist, or value does not match, returns bimultimap unchanged.

Examples

iex> bimultimap = BiMultiMap.new([a: 1, b: 2, c: 2])
iex> BiMultiMap.delete(bimultimap, :b, 2)
#BiMultiMap<[a: 1, c: 2]>
iex> BiMultiMap.delete(bimultimap, :c, 3)
#BiMultiMap<[a: 1, b: 2, c: 2]>