~/talk

Intro to FP in Scala: Exploring a Toolbox for Solving Problems - Part 5 of 6

Talkat LambdaConf 2017 · 2017-05-25..05-27· [scala, functional-programming]
slides:none on file

Part of a hands‑on Scala FP workshop that implements a concrete solution: state monad implemented from scratch and then used to replace hand‑rolled s -> (s, A) functions. Code shows map/flatMap, wrapping functions, and a cache-as-immutable-map user repo example where get/insert/repo return State and a for‑comprehension passes state for you. Tests run the State via run, expose the previous bug of manually threaded state, and demonstrate a working pattern; no slides provided.

AI-written summary · about

  1. 0:00Intro
  2. 2:14Modularity
  3. 6:11File
  4. 9:30Repository
  5. 11:43Cash
  6. 12:49Caches
  7. 14:01State Type
  8. 15:30Implementing State
  9. 17:33State parameterisation
  10. 20:05Map function example
  11. 23:29Skite
  12. 24:57Following types
  13. 25:48Flat map
  14. 27:07State
  15. 28:50State monad
  16. 29:59State functions
  17. 31:45For comprehension
  18. 34:12Run
~/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.