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
In 2.9.1 REPL, repeating the exact same "find" query twice gives different results. It only does this when using both ".par" and ".view".
See also http://stackoverflow.com/questions/8470490/can-views-be-used-with-parallel-collections/9458613#9458613
scala> val f : Int => Int = _ + 10 f: Int => Int =
scala> List(1,2,3).par.view.map(f).find(_ > 11) res11: Option[Int] = Some(12)
scala> List(1,2,3).par.view.map(f).find(_ > 11) res12: Option[Int] = None
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-5525?orig=1 Reporter: Luigi Plinge (rbj2001) Affected Versions: 2.9.1
Sorry, something went wrong.
@soc said: Can't reproduce with Scala version 2.10.0-M2-0044-g0c2f493804-2012-02-25 (OpenJDK 64-Bit Server VM, Java 1.7.0_03-icedtea).
@xeno-by said: Is indeed reproducible in 2.9.1 - both in repl and outside repl.
@axel22 said: Yes, I can reproduce in 2.9.1, but I can't reproduce it in 2.10 nightly.
@axel22 said: We accept backports through pull requests.
axel22
No branches or pull requests
In 2.9.1 REPL, repeating the exact same "find" query twice gives different results. It only does this when using both ".par" and ".view".
See also http://stackoverflow.com/questions/8470490/can-views-be-used-with-parallel-collections/9458613#9458613
scala> val f : Int => Int = _ + 10
f: Int => Int =
scala> List(1,2,3).par.view.map(f).find(_ > 11)
res11: Option[Int] = Some(12)
scala> List(1,2,3).par.view.map(f).find(_ > 11)
res12: Option[Int] = None
The text was updated successfully, but these errors were encountered: