fun <T> Any.closureOf(action: T.() -> Unit): Closure<Any?>
Adapts a Kotlin function to a single argument Groovy Closure.
T - the expected type of the single argument to the closure.
T
action - the function to be adapted.
action
See Also
KotlinClosure1