Skip to content

Instantly share code, notes, and snippets.

@dwins
Created January 11, 2013 22:15
Show Gist options
  • Save dwins/4514434 to your computer and use it in GitHub Desktop.
Save dwins/4514434 to your computer and use it in GitHub Desktop.
scala> val params = (1, "Dan", "H")
params: (Int, String, String) = (1,Dan,H)
scala> case class Person(id: Int, name: String, initial: String)
defined class Person
scala> Person.tupled(params)
res0: Person = Person(1,Dan,H)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment