containsValue

inline fun <K, V> Map<K, V>.containsValue(value: V): Boolean(source)

Returns true if the map maps one or more keys to the specified value.

Allows to overcome type-safety restriction of containsValue that requires to pass a value of type V.

Since Kotlin

1.0

Samples