--- title: foo - test layout: api ---
test / foo
# foo
fun foo(): Int
Groups elements of the original sequence by the key returned by the given keySelector function applied to each element and returns a map where each group key is associated with a list of corresponding elements. ``` kotlin if (true) { println(property) } ```
fun foo(i: Int): Int