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

Unified Diff: sdk/lib/core/iterable.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 10 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: sdk/lib/core/iterable.dart
diff --git a/sdk/lib/core/iterable.dart b/sdk/lib/core/iterable.dart
index 2fe6c29281718e37b3bb28589318b6fdd7f9f05a..f5b6ba21480eaa461d2b4c376270c6305fd6f77a 100644
--- a/sdk/lib/core/iterable.dart
+++ b/sdk/lib/core/iterable.dart
@@ -156,7 +156,8 @@ abstract class Iterable<E> {
return false;
}
- List<E> toList() => new List<E>.from(this);
+ List<E> toList({ bool growable: false }) =>
+ new List<E>.from(this, growable: growable);
Set<E> toSet() => new Set<E>.from(this);
/**

Powered by Google App Engine
This is Rietveld 408576698