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.
See forum comments
This content was released on May 22 2024. The official support period is 6-months
from this date.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.