Slackbot
08/14/2023, 6:45 PMVampire
08/14/2023, 6:47 PMAction vs the "function-type"?Octavia Togami
08/14/2023, 6:48 PMAction is annotated with @HasImplicitReceiver, so Kotlin allows it to function like MyType.() -> Unit , and no extra function is needed.Vampire
08/14/2023, 6:48 PMAction and thanks to the sam-with-receiver plugin you can use the subject as thisVampire
08/14/2023, 6:48 PMKelvin Chung
08/14/2023, 6:49 PM