Category talk:Wren-trait: Difference between revisions

m
(→‎Source code: Added two more constructors to Stepped class.)
m (→‎Source code: Typos.)
Line 46:
 
// Ensures a range is ascending before passing it to the constructor.
// ItIf it isn't, returns an empty range. Useful when bounds are variable.
static ascend(range, step) {
if (!(range is Range)) Fiber.abort("First argument must be a range.")
Line 53:
 
// Ensures a range is descending before passing it to the constructor.
// ItIf it isn't, returns an empty range. Useful when bounds are variable.
static descend(range, step) {
if (!(range is Range)) Fiber.abort("First argument must be a range.")
9,476

edits