Advertisement
Guest User

Untitled

a guest
Oct 18th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.14 KB | None | 0 0
  1. val test = Map("code" -> "test", "state" -> "test2")
  2.  
  3. test match {
  4.   case ("code" -> code, "state" -> state) => println(s"$code, $state")
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement