Lesson 10 of 15 · +130 xp

Pattern Match

Powerful switch.

Explained simply

Your task

Write: x match { case 0 => "zero"; case _ => "other" }

match.scala
← Back