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.
FromRange
zena
final class FromRange
A range from a start point to infinity/length. Represents [start, ∞) or [start, length).
ToRange
zena
final class ToRange
A range from zero to an end point (exclusive). Represents [0, end).
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.