Skip to content

Instantly share code, notes, and snippets.

@bruckhaus
Created January 6, 2015 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bruckhaus/104ea44cdd7447b0195b to your computer and use it in GitHub Desktop.
Save bruckhaus/104ea44cdd7447b0195b to your computer and use it in GitHub Desktop.
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