Docs for fapply
|
and return the result, wrapped in the same context as `av`. |
Shouldn't it be the same context as af
?
Using cats 2.2.0:
(m/fapply (maybe/just inc) (either/left 5))
=> #<Just 6>
(m/fapply (maybe/just inc) (either/right 5))
=> #<Just 6>
(m/fapply (maybe/nothing) (either/right 5))
=> #<Nothing>