iter
Helpers for any Iterator, not only slices: work on a lazy, single-use or unbounded source.
Install
Section titled “Install”Cargo feature iter (enabled by default). To compile only this module:
or in Cargo.toml:
Import path: helpers4::iter.
| Item | What it does |
|---|---|
chunk | Splits iter into consecutive chunks of size items, the last one possibly shorter. |
first_duplicate | Returns the first item of iter that has already appeared earlier in it, or None when every item is unique. |
min_max | Returns the smallest and largest item of iter in one pass, or None when it is empty. |
