Skip to content

Instantly share code, notes, and snippets.

@josep2
Last active November 21, 2019 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josep2/e68bd9137e762d667d7d2a088e0fca5d to your computer and use it in GitHub Desktop.
Save josep2/e68bd9137e762d667d7d2a088e0fca5d to your computer and use it in GitHub Desktop.
case class Player(firstName: String, lastName: String, ppg: Double, apg: Double, rpg: Double)
val jf = Player.apply("Jimmer", "Fredette", 1.1, 0.1, 0.2)
print(jf)
// Player(Jimmer,Fredette,1.1,0.1,0.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment