Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Map and FlatMap Magic

try! Swift Conference via YouTube

Overview

Explore the functional power of Swift in this conference talk from try! Swift NYC 2017. Discover how to create elegant code using map and flatMap, transforming Swift optionals with ease. Learn tips and tricks to make your code more Swifty as speaker Neem Serra guides you through the magic of functional programming concepts. Delve into topics such as monads, closures, and optional handling, using creative cupcake analogies to illustrate complex ideas. Gain insights on efficient coding practices, including string interpolation and shortcut initialization, to enhance your Swift development skills.

Syllabus

Intro
Functional Programming
Monads
Cupcakes
Frosting
Old way
New way
Mapping
Cupcake Map
Closures
Map
Dictionary
Optionals
FlatMap
FlatMap first argument
FlatMap second argument
Optional cupcakes
Why dont we like mapping
Cupcake example
Indepth example
Indepth example 2
Indepth example 3
String interpolation
Shortcut initialization
Summary

Taught by

try! Swift Conference

Reviews

Start your review of Map and FlatMap Magic

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.