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 an api to compute the cartesian product of n Option[T] (and other monad/applicative types) #82

Closed
dgouyette opened this issue Nov 23, 2017 · 0 comments

Comments

@dgouyette
Copy link
Collaborator

Example :

val sum = (optionalInt1,optionalInt2).mapN((l, r) => l+r)

Maybe we could do something for Either, Validation, UnionType...

@loicdescotte loicdescotte changed the title Add an api to compute the cartesian product of two option[T] Add an api to compute the cartesian product of n option[T] Nov 24, 2017
@loicdescotte loicdescotte added this to TODO in Hamsters board Dec 8, 2017
@loicdescotte loicdescotte moved this from TODO to In Progress in Hamsters board Dec 8, 2017
@loicdescotte loicdescotte changed the title Add an api to compute the cartesian product of n option[T] Add an api to compute the cartesian product of n Monad[T] Dec 8, 2017
@loicdescotte loicdescotte changed the title Add an api to compute the cartesian product of n Monad[T] Add an api to compute the cartesian product of n Option[T] (and other monad/applicative types) Dec 8, 2017
@loicdescotte loicdescotte removed this from In Progress in Hamsters board Dec 16, 2017
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