RangeConstructible

public protocol RangeConstructible[Other = Self]

Raw protocol backing the half-open ..< operator (start..<end).

Output is the range type produced — usually Range[Self], but custom types may produce their own range flavor (e.g. a date range).

Associated Types

type Output

Methods

func exclusiveRange(to: Other) -> Output

Builds the half-open range [self, end).

Defined in lang/std/core/range.ks