
Functional Programming with Ian Schwartz - JSJ 574
JavaScript Jabber
00:00
JavaScript - Pattern Matching
Maybe holds a thing that might be there or might not be there. Non existence is a problem in JavaScript because, you know, we already have two types for defining non existence. So I rewrote maybe to use either under the hood. It's like an area with a single element versus an area with zero elements. And being able to write methods that call that can either map over it, if it's something or nothing.
Transcript
Play full episode