1
Fork 0

Removed deprecated functions map and flat_map for vectors and slices.

This commit is contained in:
Marvin Löbel 2014-03-28 20:42:34 +01:00
parent 86890b9e7c
commit c356e3ba6a
58 changed files with 278 additions and 325 deletions

View file

@ -902,13 +902,6 @@ impl<T> Vec<T> {
}
}
///Apply a function to each element of a vector and return the results.
#[inline]
#[deprecated="Use `xs.iter().map(closure)` instead."]
pub fn map<U>(&self, f: |t: &T| -> U) -> Vec<U> {
self.iter().map(f).collect()
}
/// Takes ownership of the vector `other`, moving all elements into
/// the current vector. This does not copy any elements, and it is
/// illegal to use the `other` vector after calling this method