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

bifoldable doesn't include tests for bifoldl #70

Open
sjakobi opened this issue May 5, 2022 · 0 comments
Open

bifoldable doesn't include tests for bifoldl #70

sjakobi opened this issue May 5, 2022 · 0 comments

Comments

@sjakobi
Copy link
Member

sjakobi commented May 5, 2022

Maybe we can relate it to bifoldr via this toEitherList function from the documented Bifoldable laws:

bifoldr f g z ≡ foldr (either f g) z . toEitherList

bifoldl f g z ≡ foldl (acc -> either (f acc) (g acc)) z . toEitherList

For reference: bifoldable was added in #62

(CC @solomon-b)

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

No branches or pull requests

1 participant