Ranges
Generic ranges for any value that is Ordered. Range objects are Enumerable.
r exclusive? → Boolean | r is-a?: Range
Is a range exclusive?
Example:
> ($a .. $z) exclusive? False > ($a ... $z) exclusive? True
r matches?: x → Boolean | r is-a?: Range
Test if x is within the bounds of the range. This is useful for case-of:.
r step &size: 1 → List | r is-a?: Range
Returns a list of the values in the range, increasing by size.