3 ms·
I struggle to understand Traversable (2018)
- josephcsible 5y ago> So to resuscitate my old code I had to implement a bunch of <*> functions and since I didn't really understand what it was supposed to be doing I couldn't do that. But you don't really need any understanding of Applicative for that: instance Applicative MyTypeThatWasAlreadyAMonad where pure = return (<*>) = ap That will work for any type that already has a Monad implementation. ---- Also, as for understanding Traversable itself, I personally think it's easier to first understand it in terms of sequenceA than in terms of traverse.