| Index: runtime/lib/array.dart
|
| ===================================================================
|
| --- runtime/lib/array.dart (revision 507)
|
| +++ runtime/lib/array.dart (working copy)
|
| @@ -9,7 +9,7 @@
|
| class ListFactory<T> {
|
|
|
| factory List.from(Iterable<T> other) {
|
| - GrowableObjectArray<T> list = new GrowableObjectArray<T>();
|
| + List<T> list = new List<T>();
|
| for (final e in other) {
|
| list.add(e);
|
| }
|
| @@ -30,7 +30,7 @@
|
|
|
| factory List([int length = null]) {
|
| if (length === null) {
|
| - return new GrowableObjectArray<T>();
|
| + return new ListImplementation<T>();
|
| } else {
|
| return new ObjectArray<T>(length);
|
| }
|
| @@ -98,7 +98,7 @@
|
| }
|
|
|
| Collection<T> filter(bool f(T element)) {
|
| - return Collections.filter(this, new GrowableObjectArray<T>(), f);
|
| + return Collections.filter(this, new List<T>(), f);
|
| }
|
|
|
| bool every(bool f(T element)) {
|
| @@ -217,7 +217,7 @@
|
| }
|
|
|
| Collection<T> filter(bool f(T element)) {
|
| - return Collections.filter(this, new GrowableObjectArray<T>(), f);
|
| + return Collections.filter(this, new List<T>(), f);
|
| }
|
|
|
| bool every(bool f(T element)) {
|
|
|