~/talk

Map and FlatMap Magic

Talkat try! Swift NYC 2017 · 2017-09-05..09-06· [swift]
github:teamneem
slides:none on file

Shows concrete Swift patterns and working code examples for transforming collections and optionals using map and flatMap, using cupcake arrays to demonstrate behavior step by step. Demonstrates map over Optionals unwraps and rewraps to apply a function, flatMap removes nils and flattens one nested layer to combine boxes and drop empty slots, chains of map/flatMap to frost and sprinkle then count cupcakes, using flatMap to filter invalid server data and failed initializers so only valid objects remain.

AI-written summary · about

  1. 0:00Introduction to functional
  2. 3:44The cupcake data models
  3. 4:58Understanding map
  4. 11:43Exploring flatMap
  5. 16:46Advanced chaining and usage
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.