Conclusion

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

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
Download course materials from Github
Previous: Demo Next: Quiz: Lambda Expressions