flatMap let's you filter & map at the same time.
Code below has a type error because .find() can return undefined. Turn the map to flatMap, guard/filter undefineds. Types happy.
flatMap let's you filter & map at the same time.
Code below has a type error because .find() can return undefined. Turn the map to flatMap, guard/filter undefineds. Types happy.
They work like array methods — without creating intermediate arrays.
✨ map(), filter(), reduce()
✨ drop(), take(), flatMap()
Chain them on any iterator. Learn more 👇
developer.mozilla.org/en-US/docs/...
They work like array methods — without creating intermediate arrays.
✨ map(), filter(), reduce()
✨ drop(), take(), flatMap()
Chain them on any iterator. Learn more 👇
developer.mozilla.org/en-US/docs/...
.map(Customer::id)
.flatMap(service::thing
.collectList()
.flatMap(list -> Mono.zi(Mono.just(list, otherThing(format(format, join(delimiter, list.strea().map(Thing::id).toList())).map(tuple ...)
What the fuck is wrong with you?
Why would you nest so many functions?
.map(Customer::id)
.flatMap(service::thing
.collectList()
.flatMap(list -> Mono.zi(Mono.just(list, otherThing(format(format, join(delimiter, list.strea().map(Thing::id).toList())).map(tuple ...)
What the fuck is wrong with you?
Why would you nest so many functions?
📐🖼️ inline SVG rendering
↔️🖋️ OpenType variable fonts
🃏🎛️ CSS.registerProperty()
🔣🤖 TextEncoderStream
🫗⏳ Iterator map(), filter(), flatMap()
servo.org/blog/2025/09...
📐🖼️ inline SVG rendering
↔️🖋️ OpenType variable fonts
🃏🎛️ CSS.registerProperty()
🔣🤖 TextEncoderStream
🫗⏳ Iterator map(), filter(), flatMap()
servo.org/blog/2025/09...
The processing pipeline now works fully automatically from birth to old age.
suitpy.readthedocs.io
www.biorxiv.org/content/10.6...
The processing pipeline now works fully automatically from birth to old age.
suitpy.readthedocs.io
www.biorxiv.org/content/10.6...
www.youtube.com/watch?v=jkpG...
www.youtube.com/watch?v=jkpG...
arr.mapFlat()
because it maps first, then flats.
I often *do* want to flat first then map, and accidentally reach for flatMap() 🤨
arr.mapFlat()
because it maps first, then flats.
I often *do* want to flat first then map, and accidentally reach for flatMap() 🤨
They work like array methods — without creating intermediate arrays.
✨ map(), filter(), reduce()
✨ drop(), take(), flatMap()
Chain them on any iterator. Learn more 👇
developer.mozilla.org/en-US/docs/...
Um stream dentro do stream dentro do stream. Nada pior que um flatMap dentro de um flatMap dentro de um map...
Um stream dentro do stream dentro do stream. Nada pior que um flatMap dentro de um flatMap dentro de um map...
monads need wrap + flatMap. sandwich has wrap (bread surrounds filling) but can u flatMap? unwrap → transform → rewrap breaks topology differently than burrito!
sandwich might be applicative at best. burrito is the true monad 🌯✨
monads need wrap + flatMap. sandwich has wrap (bread surrounds filling) but can u flatMap? unwrap → transform → rewrap breaks topology differently than burrito!
sandwich might be applicative at best. burrito is the true monad 🌯✨
In our latest blog post, @irenar.bsky.social explains why flatMap should be your new favorite tool — plus what's new in TypeScript 5.5 to make it even better.
📝 www.peerigon.com/en/blog/flat...
#TypeScript #flatMap
In our latest blog post, @irenar.bsky.social explains why flatMap should be your new favorite tool — plus what's new in TypeScript 5.5 to make it even better.
📝 www.peerigon.com/en/blog/flat...
#TypeScript #flatMap
Yo Dawg, Heard You Want To FlatMap Your Direct-Style
Grab your ticket
🛒 sml.io/tickets
#scala #functionalprogramming #directstyle
Yo Dawg, Heard You Want To FlatMap Your Direct-Style
Grab your ticket
🛒 sml.io/tickets
#scala #functionalprogramming #directstyle
Check out "Yo Dawg, Heard You Want To FlatMap Your Direct-Style" from Riccardo Cardin
Check out "Yo Dawg, Heard You Want To FlatMap Your Direct-Style" from Riccardo Cardin