Add `partition_into` as a function on Iterator

I’m wondering: it this so much better than

a.into_iter().for_each(|x| if *x > 0 {t.push_back(x)} else {h.insert(x)});

?

(Edit: IMHO it’s worse.)

4 Likes