rust/src/libcore/iter
kennytm bebd2fbfc8
Rollup merge of #48156 - Centril:feature/iterator_repeat_with, r=alexcrichton
Add std/core::iter::repeat_with

Adds an iterator primitive `repeat_with` which is the "lazy" version of `repeat` but also more flexible since you can build up state with the `FnMut`. The design is mostly taken from `repeat`.

r? @rust-lang/libs
cc @withoutboats, @scottmcm
2018-02-14 18:25:22 +08:00
..
iterator.rs Rollup merge of #47547 - varkor:infinite-iterators-warning-doc, r=frewsxcv 2018-02-11 03:39:53 +08:00
mod.rs core::iter::repeat_with: tracking issue is #48169 2018-02-12 21:47:59 +01:00
range.rs Auto merge of #48057 - scottmcm:less-match-more-compare, r=dtolnay 2018-02-08 06:38:30 +00:00
sources.rs core::iter::repeat_with: fix missing word, see @Pazzaz's review 2018-02-13 06:20:17 +01:00
traits.rs Add Range[Inclusive]::is_empty 2018-02-09 01:47:18 -08:00