Kotlin supports "lambda expressions": code that can be passed around and used as an object.
You create a lambda expression by wrapping some Kotlin statements in braces
({}
). If you wish to invoke that expression yourself, call invoke()
on it.
You can learn more about this in:
Tags: