We solve the Blackjack Kata, once again using monads but leveraging Python's Object Oriented data model. Python, being a multi-paradigm programming language is well suited for this kind of mix-and-match approach....
series-monads
8 Articles
8
Since we just learned about the multi-value monad in the previous article, how about we use it to solve the Blackjack scoring kata?...
Can a variable have more than one value? Of course the answer is no. But it sure would be useful in a lot of situations....
We will now see how we can combine the functionality of multiple monads. To do this, let us revisit the API sequencing problem....
In this article we will learn about a new monad – the Writer monad...
A common requirement is to call various APIs in a sequence, any of which may fail. We see how to implement this requirement in a clean way using monads....