BiMap.member-question-mark

You're seeing just the function member-question-mark, go back to BiMap module for more information.

Specs

member?(t(), {k(), v()}) :: boolean()

Convenience shortcut for member?/3.

Link to this function

member?(bimap, key, value)

View Source

Specs

member?(t(), k(), v()) :: boolean()

Checks if bimap contains {key, value} pair.

Examples

iex> bimap = BiMap.new([a: "foo", b: "bar"])
iex> BiMap.member?(bimap, :a, "foo")
true
iex> BiMap.member?(bimap, :a, "bar")
false