rust/library/core/tests/iter
Ross MacArthur 6a84995fae
Add function core::iter::chain
The addition of `core::iter::zip` (#82917) set a precedent for adding
plain functions for iterator adaptors. Adding `chain` makes it a little
easier to `chain` two iterators.

```
for (x, y) in chain(xs, ys) {}
// vs.
for (x, y) in xs.into_iter().chain(ys) {}
```
2024-06-04 10:51:05 +02:00
..
adapters Add function core::iter::chain 2024-06-04 10:51:05 +02:00
traits Replace NonZero::<_>::new with NonZero::new. 2024-02-15 08:09:42 +01:00
mod.rs remove redundant imports 2023-12-10 10:56:22 +08:00
range.rs fix unsoundness in Step::forward_unchecked for signed integers 2024-03-14 00:57:02 +01:00
sources.rs VecDeque::resize should re-use the buffer in the passed-in element 2022-11-15 00:53:26 -08:00