Conclusion
In this lesson, you’ve started learning about Kotlin’s lambda expressions. Unlike functions, lambda expressions are unnamed. They’re defined using curly braces {}.
You’ve seen how to pass arguments to a lambda and return a value from a lambda. Additionally, you’ve learned about type inference and how to explicitly define a lambda expression’s type.
Using lambda expressions helps you write Kotlin code that’s more expressive and less verbose.