fork download
  1. object Main extends App {
  2. val id: Option[Int] = Some(42)
  3.  
  4. id match {
  5. case Some(n) => if(n == 0) println(n)
  6. case None => println("hm")
  7. }
  8. }
Success #stdin #stdout 0.26s 322048KB
stdin
Standard input is empty
stdout
Standard output is empty