Elements of Functional Programming
summary
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
chapters (6)
- 0:00Start
- 1:36Quick Wins
- 2:35Functional Code Avoid States
- 5:53Map Internally to Swift
- 12:35Examples
- 14:49Muscle Memory
related talks
26mMap and FlatMap Magic
52mFunctional Programming and Polymorphism basics in Swift
48mLearning From Our Elders: Applying functional insights without losing Swift
23mDeclarative Programming in Swift
34mSwift: New Paradigms for iOS Development
05mSwift Pills #3
39mRubyist meets Swift
44mSo You Think You Know Swift
