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
fn arrow2_curry[A, B, C](f : (A, B) -> C) -> @qc.Arrow[A, @qc.Arrow[B, C]] { @unsafe.coerce(@fun.curry2(f)) } fn arrow2_tuple[A, B, C](f : (A, B) -> C) -> @qc.Arrow[(A, B), C] { fn(tuple : (A, B)) -> C { f(tuple.0, tuple.1) } |> @qc.Arrow }
use arrow2_tuple implement this wrapper function
Arbitrary
core
Shrink
quickcheck
use arrow2_curry, we need to test coerce and sacrifice performance.
coerce
Tuple version is 1.2 times faster than curry version, but curry version is 1.77 times faster than forall
The text was updated successfully, but these errors were encountered:
No branches or pull requests
use arrow2_tuple implement this wrapper function
Arbitrary
for TupleN incore
library.Shrink
for TupleNquickcheck
use arrow2_curry, we need to test
coerce
and sacrifice performance.Tuple version is 1.2 times faster than curry version,
but curry version is 1.77 times faster than forall
The text was updated successfully, but these errors were encountered: