---
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 fun main(args: Array) { //sampleStart if (true) { println(property) } //sampleEnd } ```
fun foo(i: Int): Int