Why Traversable Requires Applicative at Least
At the beginning, the blog name is why traversable requires applicative
. However, later I feel like it is nonsense and just repeating the sentence to describe the traversable. It requires applicative of course because it uses that. As a result, I changed blog name because in this blog, we will learn about how the traversable
uses applicative
and why it requires applicative
at least.
You should be familiar with Foldable
before reading this blog, and I recommend you to read my previous blog why foldable requires monoid at least
In short, applicative is needed as we need to lift the chosen operator, pure the default value and keep applying by Foldable function foldr.