Category talk:Wren-big: Difference between revisions

→‎Source code: Added some properties to BigInts class for dealing with ranges.
(→‎Source code: Added support for ranges of BigInts.)
(→‎Source code: Added some properties to BigInts class for dealing with ranges.)
Line 1,693:
static range(from, to, step) { range(from, to, step, 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.
9,485

edits