Guest User

Untitled

a guest
Jul 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. def intMatch(number: Int): String = {
  2. return number match {
  3. case 1 => "This is number 1."
  4. case 2 => "This is number 2, it comes after 1."
  5. case _ => "This number is neither 1 nor 2."
  6. }
  7. }
Add Comment
Please, Sign In to add comment