BiMultiMap.member-question-mark

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

Specs

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

Convenience shortcut for member?/3.

Link to this function

member?(bimultimap, key, value)

View Source

Specs

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

Checks if bimultimap contains {key, value} pair.

Examples

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