core: Rename vec::member to vec::contains to match str mod

This commit is contained in:
Brian Anderson
2012-02-11 17:47:59 -08:00
parent 737db5b49a
commit 1040b47078
8 changed files with 12 additions and 12 deletions

View File

@@ -689,11 +689,11 @@ fn all2<T, U>(v0: [T], v1: [U], f: fn(T, U) -> bool) -> bool {
}
/*
Function: member
Function: contains
Return true if a vector contains an element with the given value
*/
fn member<T>(x: T, v: [T]) -> bool {
fn contains<T>(x: T, v: [T]) -> bool {
for elt: T in v { if x == elt { ret true; } }
ret false;
}