summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-05-03 14:42:34 -0700
committerNiko Matsakis <niko@alum.mit.edu>2012-05-03 14:42:34 -0700
commitcfa09d35a355dee59008306f98330ff0472eb09d (patch)
treee9b157de0a53e056ebd63db17557e4af1ac17ef1 /src/libcore
parent1ba4ca4c4a0153578e812baf5f7f5554d079de40 (diff)
downloadrust-cfa09d35a355dee59008306f98330ff0472eb09d.tar.gz
rust-cfa09d35a355dee59008306f98330ff0472eb09d.zip
Revert "allow fn exprs to omit arg types"
This reverts commit 1ba4ca4c4a0153578e812baf5f7f5554d079de40.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/vec.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs
index cddb1346c01..3215f3b9f28 100644
--- a/src/libcore/vec.rs
+++ b/src/libcore/vec.rs
@@ -1096,14 +1096,6 @@ impl extensions<T> for [T] {
     #[inline]
     fn map<U>(f: fn(T) -> U) -> [U] { map(self, f) }
     #[doc = "
-    Apply a function to the index and value of each element in the vector
-    and return the results
-    "]
-    fn mapi<U>(f: fn(uint, T) -> U) -> [U] {
-        let mut i = 0u;
-        self.map { |e| i += 1u; f(i - 1u, e) }
-    }
-    #[doc = "
     Apply a function to each element of a vector and return a concatenation
     of each result vector
     "]