Index: corelib/src/implementation/collections.dart |
diff --git a/corelib/src/implementation/collections.dart b/corelib/src/implementation/collections.dart |
index 162f6422b197d77e7ee3e51f4b72f07982e33945..462d33af2a703382ecf34f320b5b8d8ca1a0913a 100644 |
--- a/corelib/src/implementation/collections.dart |
+++ b/corelib/src/implementation/collections.dart |
@@ -8,45 +8,41 @@ |
* method. |
*/ |
class Collections { |
- static void forEach(Iterable<Object> iterable, void f(Object o)) { |
+ static void forEach(Iterable iterable, void f(o)) { |
for (final e in iterable) { |
f(e); |
} |
} |
- static bool some(Iterable<Object> iterable, bool f(Object o)) { |
+ static bool some(Iterable iterable, bool f(o)) { |
for (final e in iterable) { |
if (f(e)) return true; |
} |
return false; |
} |
- static bool every(Iterable<Object> iterable, bool f(Object o)) { |
+ static bool every(Iterable iterable, bool f(o)) { |
for (final e in iterable) { |
if (!f(e)) return false; |
} |
return true; |
} |
- static List<Object> map(Iterable<Object> source, |
- List<Object> destination, |
- f(Object o)) { |
+ static List map(Iterable source, List destination, f(o)) { |
for (final e in source) { |
destination.add(f(e)); |
} |
return destination; |
} |
- static List<Object> filter(Iterable<Object> source, |
- List<Object> destination, |
- bool f(Object o)) { |
+ static List filter(Iterable source, List destination, bool f(o)) { |
for (final e in source) { |
if (f(e)) destination.add(e); |
} |
return destination; |
} |
- static bool isEmpty(Iterable<Object> iterable) { |
+ static bool isEmpty(Iterable iterable) { |
return !iterable.iterator().hasNext(); |
} |