BiMap.delete

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

Specs

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

Convenience shortcut for delete/3.

Link to this function

delete(bimap, key, value)

View Source

Specs

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

Deletes {key, value} pair from bimap.

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

Examples

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