~/talk

Living the Monadstic Life

Talkat AltConf 2019 · 2019-06-03..06-06· [functional-programming]
slides:none on file

Demonstrates concrete implementations: an IntSet with contains: (Int) -> Bool that supports ranges, primes, infinite evens and set union/intersection by composing that function; a curried line as a struct holding a function from X to Y; interactive demos that show map vs flatMap explained with envelopes and parties (map lifts functions, flatMap flattens nested containers); and a working state monad RNG producing (value, nextState) used to generate reproducible random sequences. All examples run live with volunteers and illustrate testing and composition.

AI-written summary · about

  1. 0:00Welcome and introduction
  2. 0:45Functional programming overview
  3. 1:51Implementing IntSet with closures
  4. 8:24Higher-order functions and lines
  5. 13:37State and monads introduction
  6. 14:19Live demo: Shake and hug functions
  7. 20:52Map vs flatMap explained
  8. 28:48State monad with random numbers
  9. 36:48Map as a design pattern
  10. 39:20Recursion and flatMap
  11. 40:51Q&A and conclusion
~/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.