~/talk

An Intuition for List Folds

Talkat LambdaConf 2018 · 2018-06-03..06-05· [machine-learning]
slides:none on file

Clear claim: fold left = a loop — it accumulates by iterating with an accumulator (examples in Haskell and C#: sum, product, length, reverse) and never terminates on infinite lists. Precise counterpoint: fold right = constructor replacement — it substitutes cons/nil (append, map, filter, sequence) and can sometimes produce results on infinite streams because it associates to the right. Several concrete code constructions are shown and they work as described.

AI-written summary · about

  1. 0:00Start
  2. 5:54Haskell Notation
  3. 20:20Multiply the Integers of a List
  4. 29:11Haskell Expressions
  5. 35:48Flattening a List of Lists
~/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.