https://kotlinlang.org logo
#announcements
Title
# announcements
a

Andreas Sinz

11/09/2017, 5:28 PM
Copy code
fun main(args: Array<String>) {
    val funcMap = HashMap<Int, (Int) -> Int>()
    
    for(i in 0..1) {
        funcMap[i] = { it + 1 }
    }
    
    println(funcMap[0] === funcMap[1])
}
This returns true