Skip to content

Instantly share code, notes, and snippets.

@rssh
Created September 16, 2014 07:44
Show Gist options
  • Save rssh/b39fa949af92f18e8b87 to your computer and use it in GitHub Desktop.
Save rssh/b39fa949af92f18e8b87 to your computer and use it in GitHub Desktop.
jdv_article16
p match {
case Person(“Jon”,”Galt” ) => “Hi, who are you ?”
case Person(firstName, lastName) => s”Hi, ${firstName}, ${lastName}”
case _ => “You are not person”
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment