The `partition` function might be clearer, here.