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

Unified Diff: runtime/lib/typeddata.dart

Issue 14065011: Implement getRange (returning an Iterable). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes and status-file update. Created 7 years, 8 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: runtime/lib/typeddata.dart
diff --git a/runtime/lib/typeddata.dart b/runtime/lib/typeddata.dart
index 35eed4ff9839a58c95d1d0f287b479d7b7aea210..8bf7a8cf7e2751834ab86947f7a0a5b10ec85be1 100644
--- a/runtime/lib/typeddata.dart
+++ b/runtime/lib/typeddata.dart
@@ -483,8 +483,8 @@ abstract class _TypedListBase {
return result;
}
- List getRange(int start, int length) {
- return sublist(start, start + length);
+ Iterable getRange(int start, [int end]) {
+ return IterableMixinWorkaround.getRangeList(this, start, end);
}
void setRange(int start, int length, List from, [int startFrom = 0]) {

Powered by Google App Engine
This is Rietveld 408576698