diff options
| author | Ross MacArthur <ross@macarthur.io> | 2024-06-04 10:51:05 +0200 |
|---|---|---|
| committer | Ross MacArthur <ross@macarthur.io> | 2024-06-04 10:51:05 +0200 |
| commit | 6a84995fae01eb0ae18ef6bfc41b2979ca760447 (patch) | |
| tree | fe7d10512d0b435658d55fd458f82b7dde7cfa75 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | 27529d5c2526eab5aa03d765426c44ea55c5d269 (diff) | |
| download | rust-6a84995fae01eb0ae18ef6bfc41b2979ca760447.tar.gz rust-6a84995fae01eb0ae18ef6bfc41b2979ca760447.zip | |
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) {}
```
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions
