| OLD | NEW |
| 1 var _internal; | 1 var _internal; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 class EfficientLength extends core.Object {} | 4 class EfficientLength extends core.Object {} |
| 5 let ListIterable$ = dart.generic(function(E) { | 5 let ListIterable$ = dart.generic(function(E) { |
| 6 class ListIterable extends collection.IterableBase$(E) { | 6 class ListIterable extends collection.IterableBase$(E) { |
| 7 ListIterable() { | 7 ListIterable() { |
| 8 super.IterableBase(); | 8 super.IterableBase(); |
| 9 } | 9 } |
| 10 get [core.$iterator]() { | 10 get [core.$iterator]() { |
| (...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1075 return new (SubListIterable$(T))(dart.as(list, core.Iterable$(T)), n, nu
ll); | 1075 return new (SubListIterable$(T))(dart.as(list, core.Iterable$(T)), n, nu
ll); |
| 1076 } | 1076 } |
| 1077 skipWhile(iterable, test) { | 1077 skipWhile(iterable, test) { |
| 1078 return new (SkipWhileIterable$(T))(dart.as(iterable, core.Iterable$(T)),
dart.as(test, dart.functionType(core.bool, [T]))); | 1078 return new (SkipWhileIterable$(T))(dart.as(iterable, core.Iterable$(T)),
dart.as(test, dart.functionType(core.bool, [T]))); |
| 1079 } | 1079 } |
| 1080 reversedList(list) { | 1080 reversedList(list) { |
| 1081 return new (ReversedListIterable$(T))(dart.as(list, core.Iterable$(T))); | 1081 return new (ReversedListIterable$(T))(dart.as(list, core.Iterable$(T))); |
| 1082 } | 1082 } |
| 1083 static sortList(list, compare) { | 1083 static sortList(list, compare) { |
| 1084 if (compare == null) | 1084 if (compare == null) |
| 1085 compare = core.Comparable.compare; | 1085 compare = dart.bind(core.Comparable, 'compare'); |
| 1086 Sort.sort(list, compare); | 1086 Sort.sort(list, compare); |
| 1087 } | 1087 } |
| 1088 static shuffleList(list, random) { | 1088 static shuffleList(list, random) { |
| 1089 if (random == null) | 1089 if (random == null) |
| 1090 random = new math.Random(); | 1090 random = new math.Random(); |
| 1091 let length = list[core.$length]; | 1091 let length = list[core.$length]; |
| 1092 while (dart.notNull(length) > 1) { | 1092 while (dart.notNull(length) > 1) { |
| 1093 let pos = random.nextInt(length); | 1093 let pos = random.nextInt(length); |
| 1094 length = dart.notNull(length) - 1; | 1094 length = dart.notNull(length) - 1; |
| 1095 let tmp = list[core.$get](length); | 1095 let tmp = list[core.$get](length); |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1967 exports.ReversedListIterable = ReversedListIterable; | 1967 exports.ReversedListIterable = ReversedListIterable; |
| 1968 exports.UnmodifiableListError = UnmodifiableListError; | 1968 exports.UnmodifiableListError = UnmodifiableListError; |
| 1969 exports.NonGrowableListError = NonGrowableListError; | 1969 exports.NonGrowableListError = NonGrowableListError; |
| 1970 exports.makeListFixedLength = makeListFixedLength; | 1970 exports.makeListFixedLength = makeListFixedLength; |
| 1971 exports.Lists = Lists; | 1971 exports.Lists = Lists; |
| 1972 exports.printToConsole = printToConsole; | 1972 exports.printToConsole = printToConsole; |
| 1973 exports.Sort = Sort; | 1973 exports.Sort = Sort; |
| 1974 exports.Symbol = Symbol; | 1974 exports.Symbol = Symbol; |
| 1975 exports.POWERS_OF_TEN = POWERS_OF_TEN; | 1975 exports.POWERS_OF_TEN = POWERS_OF_TEN; |
| 1976 })(_internal || (_internal = {})); | 1976 })(_internal || (_internal = {})); |
| OLD | NEW |