diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 7c0b4b516bb5..a157071c9557 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -1918,10 +1918,9 @@ impl &[A]: iter::CopyableIter { } pure fn to_vec() -> ~[A] { iter::to_vec(&self) } - // FIXME--bug in resolve prevents this from working (#2611) - // fn flat_map_to_vec>(op: fn(A) -> IB) -> ~[B] { - // iter::flat_map_to_vec(self, op) - // } + pure fn flat_map_to_vec>(op: fn(A) -> IB) -> ~[B] { + iter::flat_map_to_vec(&self, op) + } pub pure fn find(p: fn(a: A) -> bool) -> Option { iter::find(&self, p)