aboutsummaryrefslogtreecommitdiff
path: root/core/testdata/format/website/sample.kt
blob: a664c2f52c241cbf27ebf5ba1f290061ee5e384f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * 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.
 * @sample example1
 */
fun foo(): Int {
    return 0
}

fun foo(i: Int): Int {
    return 1
}

fun example1(node: String) = if (true) {
    println(property)
}