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

Unified Diff: tools/dom/src/ImmutableListMixin.dart

Issue 24740003: Add List.shuffle(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adddress comments Created 7 years, 3 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
Index: tools/dom/src/ImmutableListMixin.dart
diff --git a/tools/dom/src/ImmutableListMixin.dart b/tools/dom/src/ImmutableListMixin.dart
index 2c05c11098b7fbb8dee9d051f8754a87d503ba06..36a51865da1d818d09b310bc636b5275a374c6e5 100644
--- a/tools/dom/src/ImmutableListMixin.dart
+++ b/tools/dom/src/ImmutableListMixin.dart
@@ -27,6 +27,10 @@ abstract class ImmutableListMixin<E> implements List<E> {
throw new UnsupportedError("Cannot sort immutable List.");
}
+ void shuffle() {
+ throw new UnsupportedError("Cannot shuffle immutable List.");
+ }
+
void insert(int index, E element) {
throw new UnsupportedError("Cannot add to immutable List.");
}

Powered by Google App Engine
This is Rietveld 408576698