We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
pasting http://scalapuzzlers.com/#pzzlr-034
val ints = List(1, 2, 3) val accumulator: List[Int] = Nil val leftReversed = (ints foldLeft accumulator) { (acc, elem) => elem :: acc } val rightReversed = (ints foldRight accumulator) { (elem, acc) => acc :+ elem } println(leftReversed) println(rightReversed) // ...and back println((leftReversed /: accumulator) { (acc, elem) => elem :: acc }) println((rightReversed :\ accumulator) { (elem, acc) => acc :+ elem })
into interpreter sends it into infinite look after the // ...and back comment. Additionally, we disable control-c, there's no easy way to kill it.
// ...and back
The text was updated successfully, but these errors were encountered:
7668729
Reverted change made to fix scala#1375.
b6d5673
ef781da
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
pasting http://scalapuzzlers.com/#pzzlr-034
into interpreter sends it into infinite look after the
// ...and back
comment.Additionally, we disable control-c, there's no easy way to kill it.
The text was updated successfully, but these errors were encountered: