kotlin.collections.component1

component1

inline operator fun <K, V> Entry<K, V>.component1(): K

Returns the key component of the map entry.

This method allows to use destructuring declarations when working with maps, for example:

for ((key, value) in map) {
    // do something with the key and the value
}
inline operator fun <T> List<T>.component1(): T
inline operator fun <T> Array<out T>.component1(): T
inline operator fun ByteArray.compone