~/talk

Functional Programming and Polymorphism basics in Swift

Talkat LambdaConf Winter Retreat 2017 · 2017-01-08..01-11· [swift]
name:TJ Usiyan
speakerdeck:griotspeak
slides:none on file

Builds a working hex‑to‑base64 converter by chunking characters and mapping to code points, shows an iterative and a memoized generic factorial with discussion of tail‑call optimism limits, implements a purely functional unbalanced enum set returning new trees instead of mutating, and demonstrates when to prefer closures, map/filter, and value types versus mutation. Notes practical limits: no guaranteed tail‑call elimination, no standard Result/Either, explicit @escaping and ARC tradeoffs, and when reduce harms performance.

AI-written summary · about

  1. 0:00Functional programming in Swift
  2. 1:26Hex to base64 conversion
  3. 9:24Factorial with recursion
  4. 17:55Polymorphism and generics
  5. 28:59Type safety in Swift
  6. 31:30Memoizing factorial
  7. 36:34Set with enums
  8. 45:26Functional techniques summary
  9. 45:49Q&A
~/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.