Category talk:Wren-big: Difference between revisions
Content added Content deleted
(→Source code: Added support for ranges of BigInts.) |
(→Source code: Added some properties to BigInts class for dealing with ranges.) |
||
Line 1,693: | Line 1,693: | ||
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. |