Distilling the State Monad from the very ground up. In F#, no prior knowledge needed.
If you are completely new to Monads, the ticket to get you in the loop could be the gentle introduction of Monads for the Rest of Us which uses C# examples. This series, instead, uses F# and is only slightly more challenging. Nonetheless, no previous knowledge of F# is needed, neither is understanding of monads. In fact, the series starts from the scratch and builds an intuition on State Monad from the very ground up.
Important note: using a state monad is amazingly easy; building one from the scratch is a bit more challenging. Part I and II are about building it. Part III is way easier, since it is about just using an already existing implementation..
In which you solve a stateful problem with pure functions.
In which you develop the State Monad.
In which you play with some State Monad use cases (and you see how easy they are)
Enjoy the journey!
Interested in FP? Be the first to be notified when new introductory
articles on the topic are published.