Skip to main content
Version: edge

range

The range module contains functions for common range generator operations.

Functions

contains(r, n)

Checks if an element is within a range.

range::contains(range::range(0, 3), 2) == true

Returns [integer]

range(a, b)

Returns an array from a min-inclusive to b max-inclusive.

range::range(0, 3) == [0, 1, 2]

Returns [integer]