Hola!!


This site is built using hugo and the theme is built by Fredrik if you enjoy it, it is available at github


How to use kotlin run function

I don’t know that how to use run function in Kotlin. You might use as follows.

On kotlinc-jvm

>>> val caller = null ?: run { println("init"); {} }
init
>>> caller()
kotlin.Unit