Last active
December 11, 2015 18:39
-
-
Save stephanos/4643260 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| task(2) { | |
| def isWorkingDay(day: String) = { | |
| var res: Boolean = false | |
| day match { | |
| case "Monday" => | |
| res = true | |
| case "Tuesday" => | |
| res = true | |
| case "Wednesday" => | |
| res = true | |
| case "Thursday" => | |
| res = true | |
| case "Friday" => | |
| res = true | |
| case _ => | |
| } | |
| res | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment