eachCount

expect fun <T, K> Grouping<T, K>.eachCount(): Map<K, Int>(source)

Groups elements from the Grouping source by key and counts elements in each group.

Since Kotlin

1.1

Return

a Map associating the key of each group with the count of elements in the group.

Samples

actual fun <T, K> Grouping<T, K>.eachCount(): Map<K, Int>(source)

Groups elements from the Grouping source by key and counts elements in each group.

Since Kotlin

1.1

Return

a Map associating the key of each group with the count of elements in the group.

Samples

actual fun <T, K> Grouping<T, K>.eachCount(): Map<K, Int>(source)

Groups elements from the Grouping source by key and counts elements in each group.

Since Kotlin

1.1

Return

a Map associating the key of each group with the count of elements in the group.

Samples

actual fun <T, K> Grouping<T, K>.eachCount(): Map<K, Int>(source)

Groups elements from the Grouping source by key and counts elements in each group.

Since Kotlin

1.3

Return

a Map associating the key of each group with the count of elements in the group.

Samples

actual fun <T, K> Grouping<T, K>.eachCount(): Map<K, Int>(source)

Groups elements from the Grouping source by key and counts elements in each group.

Since Kotlin

1.8

Return

a Map associating the key of each group with the count of elements in the group.

Samples

actual fun <T, K> Grouping<T, K>.eachCount(): Map<K, Int>(source)

Groups elements from the Grouping source by key and counts elements in each group.

Since Kotlin

1.8

Return

a Map associating the key of each group with the count of elements in the group.

Samples