Skip to content

Instantly share code, notes, and snippets.

@priort

priort/JazzBandsDomain2.scala Secret

Last active Dec 30, 2018
Embed
What would you like to do?
sealed trait JazzBand
final case class PianoTrio( pianoPlayer: PianoPlayer,
bassPlayer: BassPlayer,
drummer: Drummer) extends JazzBand
final case class Quintet( saxPlayer: SaxPlayer,
trumpetPlayer: TrumpetPlayer,
pianoPlayer: PianoPlayer,
bassPlayer: BassPlayer,
drummer: Drummer) extends JazzBand
final case class Quartet( trumpetPlayer: TrumpetPlayer,
pianoPlayer: PianoPlayer,
bassPlayer: BassPlayer,
drummer: Drummer) extends JazzBand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.