itertools icon indicating copy to clipboard operation
itertools copied to clipboard

Deprecate `multiunzip` after switching to Rust 1.85

Open ronnodas opened this issue 9 months ago • 3 comments

Rust 1.85 implements FromIterator for (A_1, ..., A_n) when each A_i is Default + Extend (and n is at most 12) so iter.multiunzip() can be replaced by iter.collect().

ronnodas avatar Feb 19 '25 08:02 ronnodas

also deprecate Itertools::unzip, it's for 2-tuples, replaced by .collect() too.

marcospb19 avatar Mar 19 '25 17:03 marcospb19

There's no Itertools::unzip, maybe you're thinking of Iterator::unzip?

ronnodas avatar Mar 19 '25 17:03 ronnodas

Oh you're right, thanks.

marcospb19 avatar Mar 19 '25 20:03 marcospb19