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

Either.fold #153

Open
OliverJAsh opened this issue Mar 4, 2017 · 2 comments
Open

Either.fold #153

OliverJAsh opened this issue Mar 4, 2017 · 2 comments

Comments

@OliverJAsh
Copy link

Are there any plans to add fold methods to these data structures, like in Folktale?

@ferborva
Copy link

ferborva commented Mar 6, 2017

Dispite there being a static function available which works the same way as fold:

Either.either(leftTransformation, righTransformation, EitherInstance)

it might be interesting to have the a method attached to the prototype which does the same thing.

@OliverJAsh
Copy link
Author

That's good to know, thanks!

Are we suggesting it should implement Foldable?

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

2 participants