val one:PartialFunction[Int,String]={ case 1 => "one" case 2 => "two" case _ => "other numbers" } println(one(3))