diff options
| author | kennytm <kennytm@gmail.com> | 2018-02-25 15:54:41 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-25 15:54:41 +0800 |
| commit | 562626ac3f51d87b87039ba7f73bc251bea6efdf (patch) | |
| tree | bc6e4474ca7b46f1a128fecd7d5ba9e61cf8631c /src/rustllvm/RustWrapper.cpp | |
| parent | 725856d67fafcb19901dfa033d52f38d1994dc17 (diff) | |
| parent | 819d57abc94d162e0d6f58fcbed757849f8305b4 (diff) | |
| download | rust-562626ac3f51d87b87039ba7f73bc251bea6efdf.tar.gz rust-562626ac3f51d87b87039ba7f73bc251bea6efdf.zip | |
Rollup merge of #48115 - Centril:feature/iterator_flatten, r=alexcrichton
Add Iterator::flatten This adds the trait method `.flatten()` on `Iterator` which flattens one level of nesting from an iterator or (into)iterators. The method `.flat_fmap(f)` is then redefined as `.map(f).flatten()`. The implementation of `Flatten` is essentially that of what it was for `FlatMap` but removing the call to `f` at various places. Hopefully the type alias approach should be OK as was indicated / alluded to by @bluss and @eddyb in https://github.com/rust-lang/rfcs/pull/2306#issuecomment-361391370. cc @scottmcm
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
