Trivial partition function for dart, which splits an iterable into two partitions according to a boolean test