Created
March 18, 2015 16:50
-
-
Save leifwickland/9c2529f2cb1ef94de486 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
def f(s: String) = { | |
s.split(':') match { | |
case Array(k,v) => k -> v | |
case a => error("bad: " + a) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment