Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add laws for Bifunctor #558

Closed
wants to merge 1 commit into from
Closed

Add laws for Bifunctor #558

wants to merge 1 commit into from

Conversation

agenovese
Copy link

Added 2 laws for Bifunctor

BifunctorIdentity enforces that applying the identity function via bimap returns the original value

BifunctorComposition enforces that applying functions via consecutive applications of bimap returns the same result as applying the composition of the functions via a single application of bimap

Fixes #557

@codecov-io
Copy link

Current coverage is 75.37%

Merging #558 into master will decrease coverage by -0.11% as of f602008

@@            master    #558   diff @@
======================================
  Files          153     154     +1
  Stmts         2064    2067     +3
  Branches        68      68       
  Methods          0       0       
======================================
  Hit           1558    1558       
  Partial          0       0       
- Missed         506     509     +3

Review entire Coverage Diff as of f602008

Powered by Codecov. Updated on successful CI builds.

@agenovese agenovese closed this Oct 4, 2015
@agenovese
Copy link
Author

Sorry, shouldn't be putting in PRs while half asleep. Will resubmit tomorrow with the tests for Validated, Ior, Xor, and XorT updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants