inline fun <K, V> CharSequence.associate( transform: (Char) -> Pair<K, V> ): Map<K, V>
Returns a Map containing key-value pairs provided by transform function applied to characters of the given char sequence.
If any of two pairs would have the same key the last one gets added to the map.
The returned map preserves the entry iteration order of the original char sequence.
© 2010–2019 JetBrains s.r.o.Licensed under the Apache License, Version 2.0. https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/associate.html