]> git.lizzy.rs Git - rust.git/commit
auto merge of #8526 : blake2-ppc/rust/either-result, r=catamorphism
authorbors <bors@rust-lang.org>
Fri, 16 Aug 2013 08:56:16 +0000 (01:56 -0700)
committerbors <bors@rust-lang.org>
Fri, 16 Aug 2013 08:56:16 +0000 (01:56 -0700)
commit72b50e729d9662ed22f87aa1fcb97a309afbc0fa
treec47e2e3115f2e08a621b0825533e457e3a9f6a68
parent92af0db0a3919f5371de362cb6060ff87190aafe
parent88c149195af66c95d94db30bc55de6204ad82f8f
auto merge of #8526 : blake2-ppc/rust/either-result, r=catamorphism

Retry of PR #8471

Replace the remaining functions marked for issue #8228 with similar functions that are iterator-based.

Change `either::{lefts, rights}` to be iterator-filtering instead of returning a vector.

Replace `map_vec`, `map_vec2`, `iter_vec2` in std::result with three functions:

* `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>`