@ExperimentalUnsignedTypes inline fun <V> UIntArray.associateWith( valueSelector: (UInt) -> V ): Map<UInt, V>
@ExperimentalUnsignedTypes inline fun <V> ULongArray.associateWith( valueSelector: (ULong) -> V ): Map<ULong, V>
@ExperimentalUnsignedTypes inline fun <V> UByteArray.associateWith( valueSelector: (UByte) -> V ): Map<UByte, V>
@ExperimentalUnsignedTypes inline fun <V> UShortArray.associateWith( valueSelector: (UShort) -> V ): Map<UShort, V>
Returns a Map where keys are elements from the given array and values are produced by the valueSelector function applied to each element.
If any two elements are equal, the last one gets added to the map.
The returned map preserves the entry iteration order of the original array.
Returns a Map where keys are elements from the given collection and values are produced by the valueSelector function applied to each element.
If any two elements are equal, the last one gets added to the map.
The returned map preserves the entry iteration order of the original collection.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/associate-with.html