Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1432)

Unified Diff: runtime/lib/array.dart

Issue 11169004: Add "contains" method to Collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed last illegal-access Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/html/templates/immutable_list_mixin.darttemplate ('k') | runtime/lib/byte_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index 9df153d9f11eff082f636123239ae2ad48bac89a..3a2ca485d551e1d886f26de2768de933dd0e938f 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -59,9 +59,9 @@ class _ObjectArray<E> implements List<E> {
return list;
}
- /**
- * Collection interface.
- */
+ // Collection interface.
+
+ bool contains(E element) => Collections.contains(this, element);
void forEach(f(E element)) {
Collections.forEach(this, f);
@@ -201,9 +201,9 @@ class _ImmutableArray<E> implements List<E> {
return list;
}
- /**
- * Collection interface.
- */
+ // Collection interface.
+
+ bool contains(E element) => Collections.contains(this, element);
void forEach(f(E element)) {
Collections.forEach(this, f);
« no previous file with comments | « lib/html/templates/immutable_list_mixin.darttemplate ('k') | runtime/lib/byte_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698