Kotlin is all about lambdas! In this video, take a closer look at why their use helps you to write concise code. Annyce covers their syntax, how they can be passed as function parameters, and more.
- [Instructor] Kotlin is all about lambdas,…so let's take a closer look at why their use…helps us to write concise code.…We're going to start by reviewing their syntax,…then how they can be passed as function parameters,…and finally, how to use them…with Java functional interfaces.…This is a lambda.…Let's break it down piece by piece.…On the left side of the equal sign…is the type of the lambda.…In this case, it takes in an integer…and returns a Boolean as its value.…
It's important to understand this syntax,…although in practice, the type of the lambda…is not often seen in code.…On the other side of the equal sign is the expression.…It always has opening and closing curly braces.…This is what you'll see most often…when working with lambda expressions.…On the left side of the arrow…is a listing of the parameters to the lambda.…In this case, there's only one, and it's of type integer.…On the right side of the arrow is the lambda's body.…
This is the piece of work that this lambda will perform.…In our example, it's going to…
- What Kotlin has to offer
- Working with lambdas
- Common Android extension functions
- Kotlin Android Extensions overview
- Making use of the Anko library
- Working with coroutines
- Nullability and collections
Skill Level Intermediate
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
Developing AWS Lambda Functions with Kotlinwith Troy Miles1h 55m Intermediate
1. Kotlin Overview
2. Extension Functions and Properties
3. Incorporating Anko
4. Advanced Anko
5. Working with Collections
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.