Flattening arrow code using a stack of monads

added by DotNetKicks
7/30/2018 1:05:52 PM

1111 Views

Flatten arrow code with a stack of monads. A horrible example in C#. In the previous article, you saw how to refactor an injected dependency to a Visitor that implements a free monad. One remaining problem is that some of the code tends towards the Arrow anti-pattern.


0 comments