kotlin.text.associateBy
associateBy
inline fun <K> CharSequence.associateBy( keySelector: (Char) -> K ): Map<K, Char>
Returns a Map containing the characters from the given char sequence indexed by the key returned from keySelector function applied to each character.
If any two characters would have the same key returned by 登录查看完整内容