diff options
| author | blake2-ppc <blake2-ppc> | 2013-08-12 20:24:05 +0200 |
|---|---|---|
| committer | blake2-ppc <blake2-ppc> | 2013-08-15 02:52:55 +0200 |
| commit | 88c149195af66c95d94db30bc55de6204ad82f8f (patch) | |
| tree | 0897911f80a422957e06462a2f213db9202068c8 /src/rt/rust_stack.cpp | |
| parent | 6fe4c871f1010053092a908d75ae8e4c4fb46599 (diff) | |
| download | rust-88c149195af66c95d94db30bc55de6204ad82f8f.tar.gz rust-88c149195af66c95d94db30bc55de6204ad82f8f.zip | |
std: Replace map_vec, map_vec2, iter_vec2 in std::result
Replace these with three functions based on iterators: collect, fold, and fold_. The mapping part is replaced by iterator .map(), so the part that these functions do is to accumulate the final Result<,> value. * `result::collect` gathers `Iterator<Result<V, U>>` to `Result<~[V], U>` * `result::fold` folds `Iterator<Result<T, E>>` to `Result<V, E>` * `result::fold_` folds `Iterator<Result<T, E>>` to `Result<(), E>`
Diffstat (limited to 'src/rt/rust_stack.cpp')
0 files changed, 0 insertions, 0 deletions
