We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When the type changes it breaks left identity
Future<Integer> bindAndUnit = Future.ofResult(10).flatMap(i->Future.ofResult(i+10))); //Future[20] Future<Integer> applyF = Lambda.λ(i->Future.ofResult(i+10))) .apply(10); //Future[20]
But changing the Function to return a Maybe or Option also works, but breaks the law java i->Maybe.just(10)
java i->Maybe.just(10)
Future<Integer> bindAndUnit = Future.ofResult(10).flatMap(i->Maybe.just(i+10))); //Future[20] Maybe<Integer> applyF = Lambda.λ(i->Maybe.just(i+10))) .apply(10); //Maybe[20]
Areas affected
This is a breaking change, and is a potential enhancement for cyclops 11 or 12.
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
No branches or pull requests
When the type changes it breaks left identity
But changing the Function to return a Maybe or Option also works, but breaks the law
java i->Maybe.just(10)
Areas affected
Proposed Approach
This is a breaking change, and is a potential enhancement for cyclops 11 or 12.
The text was updated successfully, but these errors were encountered: