Chromium Code Reviews| Index: sdk/lib/collection/list.dart |
| diff --git a/sdk/lib/collection/list.dart b/sdk/lib/collection/list.dart |
| index eed6b32cefb5966d4803b52e881d8b85e1401697..a22da23beb4a8ef700ebcc37e7673c779b2acd00 100644 |
| --- a/sdk/lib/collection/list.dart |
| +++ b/sdk/lib/collection/list.dart |
| @@ -462,6 +462,8 @@ abstract class ListMixin<E> implements List<E> { |
| throw new RangeError.range(index, 0, length); |
| } |
| // TODO(floitsch): we can probably detect more cases. |
| + // TODO(lrn): How about having a marker interface that promises that length |
|
floitsch
2013/10/15 15:28:05
That should be done now.
|
| + // is efficient? List implements EfficientLength. |
| if (iterable is! List && iterable is! Set && iterable is! SubListIterable) { |
| iterable = iterable.toList(); |
| } |