https://kotlinlang.org logo
Title
u

user

07/23/2022, 6:01 AM
what's the difference between The Method reference and lambda expression in kotlin? I'm testing the difference between method ref and lambda. I tried using both, and found the difference in decompiled code. that was like below. public final class TestKt { public static final void main() { final Print printTest = new Print(); text((Function0)(new Function0() { // $FF: synthetic method // $FF: bridge method public Object invoke() { this.invoke(); return Unit.INSTANCE; } public final void...