std: Deprecate result::fold

This function has seen very little use and it seems better to explore this
functionality through iterator adaptors instead of specialized functions.
This commit is contained in:
Alex Crichton
2015-06-10 18:04:49 -07:00
parent 153de4c5d9
commit c72e01ef7f

View File

@@ -968,6 +968,9 @@ impl<A, E, V: FromIterator<A>> FromIterator<Result<A, E>> for Result<V, E> {
#[inline]
#[unstable(feature = "result_fold",
reason = "unclear if this function should exist")]
#[deprecated(since = "1.2.0",
reason = "has not seen enough usage to justify its position in \
the standard library")]
pub fn fold<T,
V,
E,