Index: sdk/lib/core/set.dart |
=================================================================== |
--- sdk/lib/core/set.dart (revision 14804) |
+++ sdk/lib/core/set.dart (working copy) |
@@ -110,14 +110,14 @@ |
} |
void addAll(Collection<E> collection) { |
- collection.forEach(void _(E value) { |
+ collection.forEach((E value) { |
add(value); |
}); |
} |
Set<E> intersection(Collection<E> collection) { |
Set<E> result = new Set<E>(); |
- collection.forEach(void _(E value) { |
+ collection.forEach((E value) { |
if (contains(value)) result.add(value); |
}); |
return result; |
@@ -128,26 +128,26 @@ |
} |
void removeAll(Collection<E> collection) { |
- collection.forEach(void _(E value) { |
+ collection.forEach((E value) { |
remove(value); |
}); |
} |
bool containsAll(Collection<E> collection) { |
- return collection.every(bool _(E value) { |
+ return collection.every((E value) { |
return contains(value); |
}); |
} |
void forEach(void f(E element)) { |
- _backingMap.forEach(void _(E key, E value) { |
+ _backingMap.forEach((E key, E value) { |
f(key); |
}); |
} |
Set map(f(E element)) { |
Set result = new Set(); |
- _backingMap.forEach(void _(E key, E value) { |
+ _backingMap.forEach((E key, E value) { |
result.add(f(key)); |
}); |
return result; |
@@ -160,7 +160,7 @@ |
Set<E> filter(bool f(E element)) { |
Set<E> result = new Set<E>(); |
- _backingMap.forEach(void _(E key, E value) { |
+ _backingMap.forEach((E key, E value) { |
if (f(key)) result.add(key); |
}); |
return result; |