1---
2title: foo - test
3layout: api
4---
5
6<div class='api-docs-breadcrumbs'><a href="test/index">test</a> / <a href="test/foo">foo</a></div>
7
8# foo
9
10<div class="overload-group" markdown="1">
11
12<div class="signature"><code><span class="keyword">fun </span><span class="identifier">foo</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Int</span></code></div>
13
14Groups elements of the original sequence by the key returned by the given <a href="#">keySelector</a> function
15applied to each element and returns a map where each group key is associated with a list of corresponding elements.
16
17<div class="sample" markdown="1">
18
19``` kotlin
20
21
22fun main(args: Array<String>) {
23//sampleStart
24if (true) {
25    println(property)
26}
27//sampleEnd
28}
29```
30
31</div>
32
33</div>
34
35<div class="overload-group" markdown="1">
36
37<div class="signature"><code><span class="keyword">fun </span><span class="identifier">foo</span><span class="symbol">(</span><span class="parameterName" id="$foo(kotlin.Int)/i">i</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Int</span></code></div>
38
39</div>
40