There are pros and cons of
itertools (and other helper crates that adds more features to standard and primitive types) of being included in
But can there be a middle ground between “on board - in std” and “thrown away into ocean of crates.io”? Maybe documentation can contain explicit names of functions like
interleave? The content may suggest varied level of endorsement:
- [minimal] Explicit statement that there is no
Iterator. So user could stop searching the page again trying to fix a typo in search query or try synonyms or some.
- [small] Advice to search the
interleavefunction somewhere on crates.io.
- [normal] Advice to use
- [maximal] Short doc snippet of
interleavewith the statement that this function is stable, verified by libstd’s developers and is encouraged to be used.
It’s no joy trying to find a function and not being sure if I am searching wrong or there is just no such thing. Things that are typically searched for may have explicit “landing pads” that terminates the search.
This way a feature that is not in std may still have exposure as if it were in std.