Skip to content

Instantly share code, notes, and snippets.

@imeredith
Created September 27, 2012 05:37
Show Gist options
  • Save imeredith/3792364 to your computer and use it in GitHub Desktop.
Save imeredith/3792364 to your computer and use it in GitHub Desktop.
val stuff = "stuff" + someString match {
case "" => ""
case s => " " + s
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment