logoalt Hacker News

Tweylast Friday at 9:47 PM1 replyview on HN

I suppose Haskell does, as `(+) <$> f1 <*> f2`.


Replies

raluklast Saturday at 5:12 AM

In there is also ApplicativeDo that works nicely with this.

    do 
      x <- f1
      y <- f2
      return $ x + y
this is evaluated as applicative in same way.