Chromium Code Reviews| Index: sdk/lib/async/stream.dart |
| diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart |
| index 3911b674b26759c78a6a9dfac99c488a4f0dffb8..e0c84ab6e6ef77128bb45039522b1ebed166fc9d 100644 |
| --- a/sdk/lib/async/stream.dart |
| +++ b/sdk/lib/async/stream.dart |
| @@ -129,11 +129,18 @@ abstract class Stream<T> { |
| * Create a new stream that converts each element of this stream |
| * to a new value using the [convert] function. |
| */ |
| - Stream mappedBy(convert(T event)) { |
| + Stream map(convert(T event)) { |
| return new _MapStream<T, dynamic>(this, convert); |
| } |
| /** |
| + * Deprecated alias for [map]. |
| + * |
| + * @deprecated |
| + */ |
| + Iterable mappedBy(f(E element)) => map(f); |
|
floitsch
2013/01/30 14:48:44
Stream mappedBy.
Lasse Reichstein Nielsen
2013/01/31 11:33:49
Done.
|
| + |
| + /** |
| * Create a wrapper Stream that intercepts some errors from this stream. |
| * |
| * If this stream sends an error that matches [test], then it is intercepted |