Guest User

Untitled

a guest
Jul 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. case class ShotFired(val playerName: String, val atX: Int, val y: Int)
  2. val result = new ShotFired("Sean", 2, 5) match {
  3. case ShotFired(by, atX, atY) => by + " fired at (" + atX + "," + atY + ")"
  4. }
Add Comment
Please, Sign In to add comment