<@U0Q3JNS4W>: in your example, `fun id` is an inst...
# getting-started
@despectra: in your example,
fun id
is an instance method in Foo. There are no "class methods" in Kotlin. With bound method references (planned for 1.1) the code above will work with
fun id
defined in companion object of Foo and referenced as
. With 1.0:
Copy code
fun id(x: Int): Int = x

class Foo {
    fun call() {
        arrayOf(1, 2, 3).map(::id)      // ok
        arrayOf(1, 2, 3).map { id(it) } // ok