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
Start the scala console (2.12) and paste the following snippet:
List(1,2).par.foreach(println)
After pressing return nothing will happen; when ".par" is removed, the code works as expected.
(The example works as soon as the code snippet is put in a def: object o { def run = List(1,2).par.foreach(println) } and calling o.run runs fine. )
object o { def run = List(1,2).par.foreach(println) }
The text was updated successfully, but these errors were encountered:
Duplicate of #9076?
Sorry, something went wrong.
No branches or pull requests
Start the scala console (2.12) and paste the following snippet:
List(1,2).par.foreach(println)
After pressing return nothing will happen; when ".par" is removed, the code works as expected.
(The example works as soon as the code snippet is put in a def:
object o { def run = List(1,2).par.foreach(println) }
and calling o.run runs fine. )The text was updated successfully, but these errors were encountered: