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

Side by Side Diff: client/dom/generated/src/wrapping/_Float32ArrayWrappingImplementation.dart

Issue 9114026: Add map to dart:dom collections. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: x Created 8 years, 11 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
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 class _Float32ArrayWrappingImplementation extends _ArrayBufferViewWrappingImplem entation implements Float32Array { 7 class _Float32ArrayWrappingImplementation extends _ArrayBufferViewWrappingImplem entation implements Float32Array {
8 _Float32ArrayWrappingImplementation() : super() {} 8 _Float32ArrayWrappingImplementation() : super() {}
9 9
10 static create__Float32ArrayWrappingImplementation() native { 10 static create__Float32ArrayWrappingImplementation() native {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 61
62 num last() { 62 num last() {
63 return this[length - 1]; 63 return this[length - 1];
64 } 64 }
65 65
66 void forEach(void f(num element)) { 66 void forEach(void f(num element)) {
67 _Collections.forEach(this, f); 67 _Collections.forEach(this, f);
68 } 68 }
69 69
70 Collection map(f(num element)) {
71 return _Collections.map(this, [], f);
72 }
73
70 Collection<num> filter(bool f(num element)) { 74 Collection<num> filter(bool f(num element)) {
71 return _Collections.filter(this, new List<num>(), f); 75 return _Collections.filter(this, new List<num>(), f);
72 } 76 }
73 77
74 bool every(bool f(num element)) { 78 bool every(bool f(num element)) {
75 return _Collections.every(this, f); 79 return _Collections.every(this, f);
76 } 80 }
77 81
78 bool some(bool f(num element)) { 82 bool some(bool f(num element)) {
79 return _Collections.some(this, f); 83 return _Collections.some(this, f);
(...skipping 28 matching lines...) Expand all
108 return _subarray(this, start); 112 return _subarray(this, start);
109 } else { 113 } else {
110 return _subarray_2(this, start, end); 114 return _subarray_2(this, start, end);
111 } 115 }
112 } 116 }
113 static Float32Array _subarray(receiver, start) native; 117 static Float32Array _subarray(receiver, start) native;
114 static Float32Array _subarray_2(receiver, start, end) native; 118 static Float32Array _subarray_2(receiver, start, end) native;
115 119
116 String get typeName() { return "Float32Array"; } 120 String get typeName() { return "Float32Array"; }
117 } 121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698