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

Side by Side Diff: corelib/src/implementation/list.dart

Issue 10878077: Unify list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 /**
6 * A [List] is an indexable collection with a length. It can be of
7 * fixed size or extendable.
8 */
9 class ListImplementation<E> {
10 /**
11 * Factory implementation of List().
12 *
13 * Creates a list of the given [length].
14 */
15 external factory List([int length]);
16
17 /**
18 * Factory implementation of List.from().
19 *
20 * Creates a list with the elements of [other]. The order in
21 * the list will be the order provided by the iterator of [other].
22 */
23 factory List.from(Iterable<E> other) {
24 // TODO(ajohnsen): Make external once the vm can handle it, so we don't
Anders Johnsen 2012/08/27 13:56:45 Should I file a bug and add issue number here?
Mads Ager (google) 2012/08/27 14:02:42 Yes, please. Bug report that named factory constru
Anders Johnsen 2012/08/27 14:05:40 Done.
25 // lose generic type information.
Mads Ager (google) 2012/08/27 14:02:42 But please lose the additional indentation here. D
Anders Johnsen 2012/08/27 14:05:40 Done.
26 return _from(other);
27 }
28
29 external static _from(Iterable<E> other);
30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698