-
-
Save priort/0d6539642546e4153880e1d18cb530a2 to your computer and use it in GitHub Desktop.
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
object Actions { | |
import MISU.Domain._ | |
def getBandLeaderName(jazzBand: JazzBand) = | |
jazzBand match { | |
case PianoTrio(PianoPlayer(pianoPlayerName), _, _) => pianoPlayerName | |
case Quartet(TrumpetPlayer(trumpetPlayerName), _, _, _) => trumpetPlayerName | |
case Quintet(SaxPlayer(saxPlayerName), _, _, _, _) => saxPlayerName | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment