keys

All keys of this map.


Calling from Kotlin

Here's an example of calling this property from Kotlin code:

val map: NotEmptyMap<Char, Int> = notEmptyMapOf('a' to 1, 'b' to 2)
val keys: NotEmptySet<Char> = map.keys
assertEquals(expected = "[a, b]", actual = "$keys")