Re:Inventing Monads
by sudomakeup on Sunday August 30, 2020 @10:41AM
(#24323241)
So, I'm a bit rusty on haskell but I have some notes on a similar concept. Essentially, fmap with a twist - instead of applying the same function to a list of values, you have a list of functions that you want to evaluate on the same value. "fpam". In this case, we're dealing with a list of size 2
after that then fold the list with boolean &&
or alternatively with no helper functions
for example
Alternate implementations:
[ Parent
| on HN ]
Also see this related discussion: https://www.reddit.com/r/programming/comments/ij0qzl/comment...