aboutsummaryrefslogtreecommitdiff
path: root/src/lib/_vec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/_vec.rs')
-rw-r--r--src/lib/_vec.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/_vec.rs b/src/lib/_vec.rs
index 13fbeb6a..43779015 100644
--- a/src/lib/_vec.rs
+++ b/src/lib/_vec.rs
@@ -76,14 +76,10 @@ fn grow[T](&mutable vec[T] v, int n, &T initval) {
}
}
-fn map[T,U](&op[T,U] f, &vec[T] v) -> vec[U] {
- // FIXME: should be
- // let vec[U] u = alloc[U](len[T](v));
- // but this does not work presently.
- let vec[U] u = vec();
+fn map[T, U](&op[T,U] f, &vec[T] v) -> vec[U] {
+ let vec[U] u = alloc[U](len[T](v));
for (T ve in v) {
u += vec(f(ve));
}
ret u;
}
-