kotlin.text.groupByTo

groupByTo

inline fun <K, M : MutableMap<in K, MutableList<Char>>> CharSequence.groupByTo(
    destination: M, 
    keySelector: (Char) -> K
): M

Groups characters of the original char sequence by the key returned by the given keySelector function applied to each character and puts to the 登录查看完整内容