Category talk:Wren-trait: Difference between revisions
m
→Source code: Typos.
(→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.
//
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.
//
static descend(range, step) {
if (!(range is Range)) Fiber.abort("First argument must be a range.")
|