| OLD | NEW |
| 1 #library('dom'); | 1 #library('dom'); |
| 2 | 2 |
| 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
| 5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 // DO NOT EDIT | 7 // DO NOT EDIT |
| 8 // Auto-generated Dart DOM library. | 8 // Auto-generated Dart DOM library. |
| 9 | 9 |
| 10 | 10 |
| (...skipping 11982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11993 */ | 11993 */ |
| 11994 class _Collections { | 11994 class _Collections { |
| 11995 static void forEach(Iterable<Object> iterable, void f(Object o)) { | 11995 static void forEach(Iterable<Object> iterable, void f(Object o)) { |
| 11996 for (final e in iterable) { | 11996 for (final e in iterable) { |
| 11997 f(e); | 11997 f(e); |
| 11998 } | 11998 } |
| 11999 } | 11999 } |
| 12000 | 12000 |
| 12001 static List map(Iterable<Object> source, | 12001 static List map(Iterable<Object> source, |
| 12002 List<Object> destination, | 12002 List<Object> destination, |
| 12003 bool f(o)) { | 12003 f(o)) { |
| 12004 for (final e in source) { | 12004 for (final e in source) { |
| 12005 destination.add(f(e)); | 12005 destination.add(f(e)); |
| 12006 } | 12006 } |
| 12007 return destination; | 12007 return destination; |
| 12008 } | 12008 } |
| 12009 | 12009 |
| 12010 static bool some(Iterable<Object> iterable, bool f(Object o)) { | 12010 static bool some(Iterable<Object> iterable, bool f(Object o)) { |
| 12011 for (final e in iterable) { | 12011 for (final e in iterable) { |
| 12012 if (f(e)) return true; | 12012 if (f(e)) return true; |
| 12013 } | 12013 } |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12109 startIndex = a.length - 1; | 12109 startIndex = a.length - 1; |
| 12110 } | 12110 } |
| 12111 for (int i = startIndex; i >= 0; i--) { | 12111 for (int i = startIndex; i >= 0; i--) { |
| 12112 if (a[i] == element) { | 12112 if (a[i] == element) { |
| 12113 return i; | 12113 return i; |
| 12114 } | 12114 } |
| 12115 } | 12115 } |
| 12116 return -1; | 12116 return -1; |
| 12117 } | 12117 } |
| 12118 } | 12118 } |
| OLD | NEW |