zena:range

zena
import {…} from 'zena:range';

Range types for Zena. Represents different types of ranges for array slicing and iteration.

Classes

BoundedRange

zena
final class BoundedRange

A bounded range with both start and end (exclusive). Represents [start, end) - includes start, excludes end.

Constructors
zena
new(start: i32, end: i32)
#
Properties
zena
start: i32
#
zena
end: i32
#

FromRange

zena
final class FromRange

A range from a start point to infinity/length. Represents [start, ∞) or [start, length).

Constructors
zena
new(start: i32)
#
Properties
zena
start: i32
#

ToRange

zena
final class ToRange

A range from zero to an end point (exclusive). Represents [0, end).

Constructors
zena
new(end: i32)
#
Properties
zena
end: i32
#

FullRange

zena
final class FullRange

A full range representing all elements. Represents [0, length).

Type aliases

Range

zena
type Range = BoundedRange | FromRange | ToRange | FullRange

Union type of all range types.