~/talk

Recursion schemes with Higherkindness

Talkat Scale By The Bay 2019 · 2019-11-13..11-15· [functional-programming, scala]
github:andyscott
slides:none on file

Live refactor of list fold/unfold into generic recursion schemes using Scala, Cats and the Droste ideas, extracting a project functor (option of tuple), mapping recursion via Functor.map and then embedding back. Examples compute product of [1,20] = 200 and factorial(4) = 24 by composing anamorphism and catamorphism without allocating the intermediate list. Code compiles and runs; initial naive version is inefficient but the final Droste-style abstractions remove boilerplate and let the same algebra operate over different recursive structures.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:08Why recursion schemes matter
  3. 2:42FoldRight and Unfold basics
  4. 8:45Refactoring fold and unfold
  5. 13:10Abstracting over data structures
  6. 21:16Generic foldRight implementation
  7. 24:43Using foldRight generically
  8. 25:54Unfold to anamorphism
  9. 28:57Combining unfold and fold
  10. 30:43Conclusion and unconference
~/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.