From cfa09d35a355dee59008306f98330ff0472eb09d Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 3 May 2012 14:42:34 -0700 Subject: Revert "allow fn exprs to omit arg types" This reverts commit 1ba4ca4c4a0153578e812baf5f7f5554d079de40. --- src/libcore/vec.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/libcore') 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 for [T] { #[inline] fn map(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(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 "] -- cgit 1.4.1-3-g733a5