Ranges
toList
fun toList() > [int]
Returns: A list containing the sequence of integers of that range
len
fun len() > int
Returns: How many integers there is in that range
invert
fun invert() > rg
Returns: A new range with its boundaries inverted
subsetOf
fun subsetOf(other: rg) > bool
other
: Other range to compare it to
Returns: true
if the range is a subset of the other
range
intersect
fun intersect(other: rg) > bool
other
: Range to intersect it with
Returns: A new range which is the intersection of the two ranges
union
fun union(other: rg) > bool
other
: Range to union it with
Returns: A new range which is the union of the two ranges
high
fun high() > int
Returns: The high bound of the range
low
fun low() > int
Returns: The low bound of the range