What are Alternative’s “some” and “many” useful for?

TL;DR: some is one or more, many is 0 or more results collected from performing the same computation over and over by the familiar maximal munch rule. For this to make sense, some state passing (and alteration) must take place reducing the domain of possibilities somehow, otherwise it will repeat ad infinitum. And state passing … Read more

When and why should one use Applicative Functors in Scala

To quote myself: So why bother with applicative functors at all, when we’ve got monads? First of all, it’s simply not possible to provide monad instances for some of the abstractions we want to work with—Validation is the perfect example. Second (and relatedly), it’s just a solid development practice to use the least powerful abstraction … Read more