rust/library/core
Michael Goulet 9820197e12
Rollup merge of #142549 - the8472:intersperse-fold-tweak, r=tgross35
small iter.intersperse.fold() optimization

No need to call into fold when the first item is already None, this avoids some redundant work for empty iterators.

"But it uses Fuse" one might want to protest, but Fuse is specialized and may call into the inner iterator anyway.
2025-06-26 20:15:18 -04:00
..
src Rollup merge of #142549 - the8472:intersperse-fold-tweak, r=tgross35 2025-06-26 20:15:18 -04:00
Cargo.toml Add new Tier-3 targets: loongarch32-unknown-none* 2025-06-06 08:19:38 +08:00