-
Notifications
You must be signed in to change notification settings - Fork 45
fold is bimap #41
Comments
Yeah, that was removed in the new version :) I should update the documentation to note that here though. |
@puffnfresh it differs a little bit from bimap in that this fold always returns a "resolved" task. You could use the following to convert a
|
Another way to view |
And for the sake of clarity, let's view the signatures side-by-side: fold :: Future a b ~> (a -> c, b -> c) -> Future d c
bimap :: Future a b ~> (a -> c, b -> d) -> Future c d |
@Avaq I missed that detail, thank you. It's still not fold, but it's also not bimap. |
I know. :( It's what I was referring to when I said similar to a proper If Fantasy Land were to adopt a spec that uses the |
if I'm allowed to ask an unrelated question, what is |
Folktale 2's task only has @raqystyle an arbitrary type variable. There it just means it's not the same type as |
@robotlolita thank you for the explanation! |
I got a question about
fold
, so I took a look at the signature:This is not a fold, this is bimap.
The text was updated successfully, but these errors were encountered: