api / org.gradle.kotlin.dsl / KotlinClosure1 / <init>

<init>

KotlinClosure1(function: T.() -> V?, owner: Any? = null, thisObject: Any? = null)

Adapts an unary Kotlin function to an unary Groovy Closure.

Parameters

T - the type of the single argument to the closure.

V - the return type.

function - the function to be adapted.

owner - optional owner of the Closure.

thisObject - optional this Object of the Closure.

See Also

Closure