Your jpoint 2017 performance was more like introduction to kotlin and not puzzlers :)
Here is a couple of puzzlers for people who uses kotlin already:
operator fun Nothing?.not() = Unit
operator fun Unit.not() = null
var aaaa = null
fun main(args: Array<String>) {
!!!!aaaa!!!! // will it work?
(!!!!aaaa)!!!! // how about it?
!!!!(aaaa!!!!) // or it?
}
operator fun Nothing?.not() = null
var aaaa = null
fun main(args: Array<String>) {
!!!!aaaa!!!! // will it work?
(!!!!aaaa)!!!! // how about it?
!!!!(aaaa!!!!) // or it?
}
Your jpoint 2017 performance was more like introduction to kotlin and not puzzlers :)
Here is a couple of puzzlers for people who uses kotlin already: