SeqRange

public protocol SeqRange

Resolves any range-like type to a half-open Range[Int64] given a collection length. Used by removeSubrange and replaceSubrange so they accept Range, ClosedRange, RangeFrom, RangeUpTo, and RangeThrough through a single generic parameter.

Methods

func resolve(Int64) -> Range[Int64]

Defined in lang/std/collections/slice.ks