Not yet right :)
callbackFunction is really a variable, but what kind of value does it accept?
Answer: the value you assign to that variable is a function with a boolean argument.
function with a boolean argument
You can read the friendly documentation at kotlinlang.org/docs/reference/lamb...
Thanks.. I was actually reading through documentation right now. But your explanation is so much simpler to understand. :)
I also asked this on StackOverflow and your answer along with explanation on internal working from SO, made lambdas so much clear to me.
Glad I could help, don't hesitate asking other #explainmelikeim5 Kotlin questions. I like the exercise of explaining useful things in simple words!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.