kotlin.sequences.groupByTo

groupByTo

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

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