Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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