Array.map is more interesting than you probably think!
summary
Live coding shows how Array.map’s empty-array behavior becomes a pattern for safely traversing nested properties by wrapping values in a safe wrapper (Just/Nothing) that maps like an array so null checks vanish the talk implements a tiny functor type and adds flatMap as monad to avoid nested containers demonstrates the same idea with promises and shows the code running end to end with real examples from Elm jargon and npm maybe packages
AI-written summary · about
chapters (5)
- 0:00Start
- 1:51Error-free programs
- 10:37Functors are objects with .map
- 18:25Monads are functors with .flatMap
- 19:55Monads in the wild








