Created
January 6, 2015 16:11
-
-
Save bruckhaus/104ea44cdd7447b0195b 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
val t1 = new Time(1, 23) | |
val t2 = new Time(1, 55) | |
val t3 = new Time(1, 55) | |
val t4 = new Time(1, 56) | |
val t5 = new Time(2, 4) | |
for (pair <- List(t1, t2, t3, t4, t5).combinations(2)) { | |
pair(0).check(pair(1)) | |
pair(1).check(pair(0)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment