Fix FIXME that's no longer blocked by #2611

This commit is contained in:
Tim Chevalier 2012-10-04 19:43:10 -07:00
parent 213725407b
commit 4155a60c75
1 changed files with 3 additions and 4 deletions

View File

@ -1918,10 +1918,9 @@ impl<A: Copy> &[A]: iter::CopyableIter<A> {
}
pure fn to_vec() -> ~[A] { iter::to_vec(&self) }
// FIXME--bug in resolve prevents this from working (#2611)
// fn flat_map_to_vec<B:copy,IB:base_iter<B>>(op: fn(A) -> IB) -> ~[B] {
// iter::flat_map_to_vec(self, op)
// }
pure fn flat_map_to_vec<B:Copy,IB:BaseIter<B>>(op: fn(A) -> IB) -> ~[B] {
iter::flat_map_to_vec(&self, op)
}
pub pure fn find(p: fn(a: A) -> bool) -> Option<A> {
iter::find(&self, p)