Move groupingByEachCount together with the new Grouping samples

This commit is contained in:
Ilya Gorbunov
2018-09-28 18:15:48 +03:00
parent 039d41679e
commit 3a40e3f041
9 changed files with 21 additions and 17 deletions
@@ -8668,7 +8668,7 @@ public inline fun <K, V, M : MutableMap<in K, MutableList<V>>> CharArray.groupBy
* Creates a [Grouping] source from an array to be used later with one of group-and-fold operations
* using the specified [keySelector] function to extract a key from each element.
*
* @sample samples.collections.Collections.Transformations.groupingByEachCount
* @sample samples.collections.Grouping.groupingByEachCount
*/
@SinceKotlin("1.1")
public inline fun <T, K> Array<out T>.groupingBy(crossinline keySelector: (T) -> K): Grouping<T, K> {