partition
partition slices in-place by a predicate