Category talk:Wren-trait: Difference between revisions
→Source code: Added two more methods to Stepped class.
m (→Source code: Typos.) |
(→Source code: Added two more methods to Stepped class.) |
||
Line 58:
return (range.from >= range.to) ? new(range, step) : 0...0
}
// Convenience versions of the above methods which call them with a step of 1.
static ascend(range) { ascend(range, 1) }
static descend(range) { descend(range, 1) }
// Iterator protocol methods.
|