3 ms·
TBF, I wrote this article 5 years ago. Monad Comprehensions were in fashion at the time. Now every dang person wants to write an arrow with a tilde in it and e
by KirinDave 9y ago
TBF, I wrote this article 5 years ago. Monad Comprehensions were in fashion at the time.
Now every dang person wants to write an arrow with a tilde in it and exclaim, 'Naturality!' ;)
Gotta love the use of guard in this. Maybe I should revisit.
I suspect there is also a clever way to do this applicatively, but haven't really noodled with it to see if it lines up. Any chance to use applicativeDo!