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.
1 parent 80d2104 commit 3b91644Copy full SHA for 3b91644
src/script/scala/progscala3/patternmatching/MatchChaining.scala
@@ -1,7 +1,7 @@
1
// src/script/scala/progscala3/patternmatching/MatchChaining.scala
2
3
for opt <- Seq(Some(1), None)
4
-yield opt match {
+yield opt match { // Braces for clarity, but not required! Try removing them.
5
case None => ""
6
case Some(i) => i.toString
7
} match { // will match on the String from the previous match
0 commit comments