-
-
Save priort/2bedf2922f878e5d2644051757c9a5a1 to your computer and use it in GitHub Desktop.
One of the snippets for blog post: https://tompriordev.com/2018/12/29/keeping-jazz-bands-valid-with-scala/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed trait JazzBand | |
final case class PianoTrio(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