https://kotlinlang.org logo
#tornadofx
Title
# tornadofx
t

tieskedh

10/11/2017, 7:31 AM
The most basic example
Copy code
fun A.test(a: (A.() ->Unit)? =null) = apply{a?.invoke(this)}
Would become
Copy code
fun A.test(a: (A.()->Unit ={}) = apply(a)
👍 2