| Index: sdk/lib/core/int.dart
|
| diff --git a/sdk/lib/core/int.dart b/sdk/lib/core/int.dart
|
| index 173356885e24cbff22684a06c5825899d93e22c3..a973f7f7c1ef1e5a871490fb75955997d7adeb9d 100644
|
| --- a/sdk/lib/core/int.dart
|
| +++ b/sdk/lib/core/int.dart
|
| @@ -275,4 +275,21 @@ abstract class int extends num {
|
| external static int parse(String source,
|
| { int radix,
|
| int onError(String source) });
|
| +
|
| + /**
|
| + * Create an `Iterable<int>` iterating from `this` to `to`, inclusive.
|
| + *
|
| + * The iteration starts with `this` as the first value, and then
|
| + * progresses towards `to` in increments of `step`, and stops when reaching
|
| + * or overshooting `to`. If it hits `to` the `to` value is included,
|
| + * otherwise it isn't.
|
| + *
|
| + * If `to` is less than `from`, the values are in decreasing order.
|
| + *
|
| + * The [step] value must always be positive. It defaults to `1`.
|
| + *
|
| + * This is a shorthand for [Iterable.range].
|
| + */
|
| + static Iterable<int> to(int to, {int step: 1}) =>
|
| + return Iterable.range(this, to, step);
|
| }
|
|
|