Created
May 20, 2013 19:23
-
-
Save andrewharmellaw/5614744 to your computer and use it in GitHub Desktop.
Tuple Literal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val tuple = ("apple", "dog") | |
val fruit = tuple._1 | |
val animal = tuple._2 | |
fruit should be("apple") | |
animal should be("dog") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment