Add clear methods to the tests that make maps.
This commit is contained in:
parent
b7a418e194
commit
5c914e4a9d
@ -60,6 +60,7 @@ class cat : map<int, bool> {
|
||||
fn each_value(&&f: fn(&&bool) -> bool) {
|
||||
for self.each |_k, v| { if !f(v) { break; } cont;};
|
||||
}
|
||||
fn clear() { }
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
@ -82,6 +82,7 @@ class cat<T: copy> : map<int, T> {
|
||||
fn each_value(&&f: fn(&&T) -> bool) {
|
||||
for self.each |_k, v| { if !f(v) { break; } cont;};
|
||||
}
|
||||
fn clear() { }
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user