Skip to content

Range

Range is a special object that allows you to create a range of values. It is useful for creating a list of numbers, or a list of characters.

Usage

nvs

Methods

collect

Return a [Array] that contains all the values in the range.

nvs

iter

Return an [Iterator] that can be used to iterate over the range.

nvs

Or you can use the for loop to iterate over the range.

nvs

step

Return a new Range that contains the values in the range with the given step.

nvs