Created
January 12, 2015 06:20
-
-
Save shigemk2/17a7c2ca5eb31cfbcf39 to your computer and use it in GitHub Desktop.
This file contains 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 pattern = "([0-9]+) ([A-Za-z]+)".r | |
val pattern(count, fruit) = "100 Bananas" | |
println(count) | |
println(fruit) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment