Remove vec::{map, mapi, zip_map} and the methods, except for .map, since this

is very common, and the replacement (.iter().transform().collect()) is very
ugly.
This commit is contained in:
Huon Wilson
2013-06-29 15:05:50 +10:00
parent a396e1e2e9
commit c0a20d2929
47 changed files with 184 additions and 310 deletions

View File

@@ -814,7 +814,7 @@ mod test {
// convert a list of uints to an @[ident]
// (ignores the interner completely)
fn uints_to_idents (uints: &~[uint]) -> @~[ident] {
@uints.map(|u|{ ident {name:*u, ctxt: empty_ctxt} })
@uints.map(|u| ident {name:*u, ctxt: empty_ctxt})
}
fn id (u : uint, s: SyntaxContext) -> ident {