map, filter, take, drop, transform, withIndex, dictinctUntilChanged | Kotlin Flow for Android Dev

Опубликовано: 20 Май 2026
на канале: Lukas Lechner - Advanced Android Development
1,560
58

🎓 Get the full 15+ hour-long Course "Kotlin Coroutines and Flow for Android Development" with a nice discount here: https://www.lukaslechner.com/coroutin...

👨‍🎓 Here is the link to the Github Example Repository: https://github.com/LukasLechnerDev/Ko...

Intermediate operators are executed for every emission of the flow and return a new, transformed flow.

In this video, we are going to have a look at some of the most common intermediate flow operators.

Some will be familiar to you since they also exist as collection processing operators.

The operators that we are going to cover are
map
mapNotNull
filter
filterNot
filterNotNull
filterIsInstance
take
takeWhile
drop
dropWhile
transform
withIndex
distinctUntilChanged

TimeStamps
00:00 - Intro
00:17 - What are Intermediate Operators?
02:28 - map
06:30 - mapNotNull
06:53 - filter
07:48 - filterNot
08:28 - filterNotNull
08:44 - filterIsInstance
09:27 - take
10:37 - takeWhile
12:28 - drop
13:37 - dropWhile
14:25 - transform
16:07 - withIndex
16:52 - distinctUntilChanged


➤ Subscribe to the channel:    / @lukaslechner  

🌎 Check out my website: https://www.lukaslechner.com

📬 Subscribe to my newsletter: https://www.lukaslechner.com/newsletter/

➤ Follow me on twitter:   / lukaslechnerdev