~/talk

Elements of Functional Programming

Talkat dotSwift 2018 · on Monday, 2018-01-29· [swift]

Shows concrete Swift code using standard library tools: map and compactMap examples transform arrays to lengths strings and square roots, and parse strings to ints with nils dropped; demonstrates optional vs optional optional behavior and when to use flatMap; uses filter, first, reduce and the tuple-to-dictionary initializer to build counts; argues immutability and composability reduce state and make functions testable; claims shorter code becomes Swift's optimization problem and shows each example working as described.

AI-written summary · about

  1. 0:00Start
  2. 1:36Quick Wins
  3. 2:35Functional Code Avoid States
  4. 5:53Map Internally to Swift
  5. 12:35Examples
  6. 14:49Muscle Memory
~/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.