Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
(boolean (some #{v} (vals m)))
m.containsValue(v);
Map.values(m) |> Enum.member?(v)
func containsValue[M ~map[K]V, K, V comparable](m M, v V) bool {
for _, x := range m {
if x == v {
return true
}
}
return false
}
func containsValue(m map[K]T, v T) bool {
for _, x := range m {
if x == v {
return true
}
}
return false
}
elem v (elems m)
Object.values(m).includes(v)
[...m.values()].includes(v)
m.containsValue(v)
in_array($v, $m, true);
print "Found it!" if exists $m{$v};
def k(x, m):
for k, v in m.items():
if v == x: return k
k = k(v, m) or False
x = False
for y in m.items():
if y[1] == v:
x = y[0]
break
v in m.values()
m.value?(v)
m.valuesIterator.contains(v)
m includes: v.