eliminateUnit
Kotlin api:
fun foo(block: (T) -> Unit) { }
fun bar(block: T.() -> Unit) { }
Content copied to clipboard
Use it in Java:
foo(Lambdas.eliminateUnit(t -> {}));
bar(Lambdas.eliminateUnit(t -> {}));
Content copied to clipboard
Kotlin api:
fun foo(block: (T) -> Unit) { }
fun bar(block: T.() -> Unit) { }
Use it in Java:
foo(Lambdas.eliminateUnit(t -> {}));
bar(Lambdas.eliminateUnit(t -> {}));