~/talk

Refactoring Recursion

slides:none on file

Shows concrete Haskell code that starts with explicit recursive sum/product/length and refactors each into folds, then implements fold/unfold/refold patterns on lists with runnable examples (catamorphism, anamorphism, hylomorphism, paramorphism, apomorphism, zygomorphism, histomorphism, futumorphism). Demonstrates fusion/deforestation that avoids intermediate lists, uses laziness for infinite streams, and explains factoring recursion out of data via Fix/unFix and deriving Foldable so the generic cata works on tree examples.

AI-written summary · about

  1. 0:00Start
  2. 0:32introduction
  3. 2:39explicit recursion
  4. 5:10catamorphism
  5. 7:52anamorphism
  6. 15:25paramorphism
  7. 20:59zygomorphism
~/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.