~/talk

Applicatives and Swift

Talkat Functional Swift Conference 2017 · on Saturday, 2017-04-15· [swift]
slides:none on file

Claims that applicatives give a middle ground between map and monad and show concrete Swift code using Optional, Array, Result, a Validation-like Result with error accumulation, and a Future type. Demonstrations implement pure and apply operators, curry add, a user initializer validated into a Result that becomes validation accumulating errors (arrays via semigroup), and a zipped Future that runs two async computations in parallel so applicative composition yields concurrency. All examples compile conceptually and the demos show accumulated errors and nonsequential futures working.

AI-written summary · about

  1. 0:00Introduction to applicatives
  2. 6:52Applicatives vs monads
  3. 13:11Using applicatives in Swift
  4. 20:16Result type with applicatives
  5. 27:42Validation with applicatives
  6. 34:26Futures and applicatives
  7. 39:29Concurrency with applicatives
  8. 43:11When to use applicatives
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.