Martin Odersky gives this example to split out an array into 2 collections:
val people: Array[Person]
val (minors, adults) = people partition (_.age < 18)
class Person(val name: String, val age: Int)
What is the best way to split out into 3 or more arrays:
val (minors, adults, seniors) = people partition?? x < 18, 18 < x < 65, x > 65 // ?