- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for KotlinClosure1 (0.48 sec)
-
platforms/documentation/docs/src/snippets/kotlinDsl/interoperability-kotlinClosure/kotlin/build.gradle.kts
// tag::kotlinClosure[] somePlugin { // Adapt parameter-less function takingParameterLessClosure(KotlinClosure0({ "result" })) // Adapt unary function takingUnaryClosure(KotlinClosure1<String, String>({ "result from single parameter $this" })) // Adapt binary function takingBinaryClosure(KotlinClosure2<String, String, String>({ a, b -> "result from parameters $a and $b"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/GroovyInteroperability.kt
* * @param T the expected type of the single argument to the closure. * @param action the function to be adapted. * * @see [KotlinClosure1] */ fun <T> Any.closureOf(action: T.() -> Unit): Closure<Any?> = KotlinClosure1(action, this, this) /** * Adapts a Kotlin function to a Groovy [Closure] that operates on the * configured Closure delegate. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 9.7K bytes - Viewed (0)