Category talk:Wren-long: Difference between revisions
Content added Content deleted
(→Source code: Added support for ranges of Longs and ULongs.) |
(→Source code: Added some properties to Longs and ULongs classes for dealing with ranges.) |
||
Line 1,244: | Line 1,244: | ||
static range(from, to, step) { range(from, to, step, true, from <= to) } |
static range(from, to, step) { range(from, to, step, true, from <= to) } |
||
static range(from, to) { range(from, to, 1, true, from <= to) } |
static range(from, to) { range(from, to, 1, true, from <= to) } |
||
// Self-explanatory read only properties. |
|||
from { _rng.from } |
|||
to { _rng.to } |
|||
step { _step } |
|||
min { from.min(to) } |
|||
max { from.max(to) } |
|||
isInclusive { _rng.isInclusive } |
|||
isAscending { from <= to } |
|||
// Iterator protocol methods. |
// Iterator protocol methods. |
||
Line 1,675: | Line 1,684: | ||
static range(from, to, step) { range(from, to, step, true, from <= to) } |
static range(from, to, step) { range(from, to, step, true, from <= to) } |
||
static range(from, to) { range(from, to, 1, true, from <= to) } |
static range(from, to) { range(from, to, 1, true, from <= to) } |
||
// Self-explanatory read only properties. |
|||
from { _rng.from } |
|||
to { _rng.to } |
|||
step { _step } |
|||
min { from.min(to) } |
|||
max { from.max(to) } |
|||
isInclusive { _rng.isInclusive } |
|||
isAscending { from <= to } |
|||
// Iterator protocol methods. |
// Iterator protocol methods. |