Skip to content

Add bimap to Either#121

Merged
mperry merged 1 commit into
masterfrom
unknown repository
Apr 1, 2015
Merged

Add bimap to Either#121
mperry merged 1 commit into
masterfrom
unknown repository

Conversation

@jbgi

@jbgi jbgi commented Mar 31, 2015

Copy link
Copy Markdown
Member

I was surprised not to found it, am I missing something?

@mperry

mperry commented Apr 1, 2015

Copy link
Copy Markdown
Contributor

This looks like the Bifunctor bimap function (https://hackage.haskell.org/package/bifunctors-3.2.0.1/docs/Data-Bifunctor.html) with the signature Either<X, Y> bimap(final F<A, X>, F<B, Y>). The either function has the signature X either(F<A, X>, F<B, X>). I think this looks fine.

mperry added a commit that referenced this pull request Apr 1, 2015
@mperry
mperry merged commit 206afa6 into functionaljava:master Apr 1, 2015
@mperry mperry added this to the v4.4 milestone Apr 1, 2015
@jbgi
jbgi deleted the either-bimap branch April 1, 2015 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants