Direct Known Satisfying Classes: Array<Element>, String
Direct Known Satisfying Interfaces: Empty, List<Element>, Sequential<Element>

Abstract supertype of ranged objects which map a range of Comparable keys to ranges of values. The type parameter Span abstracts the type of the resulting range.

A span may be obtained from an instance of Ranged using the span operator:

print("hello world"[0..5])
See also: List, Sequence, String
Inherited Attributes
Attributes inherited from: Object
Methods
segmentSource Code
shared formal Span segment(Index from, Integer length)

Obtain a segment containing the mapped values starting from the given index, with the given length.

spanSource Code
shared formal Span span(Index from, Index to)

Obtain a span containing the mapped values between the two given indices.

spanFromSource Code
shared formal Span spanFrom(Index from)

Obtain a span containing the mapped values between the starting index and the end of the receiver.

spanToSource Code
shared formal Span spanTo(Index to)

Obtain a span containing the mapped values between the start of the receiver and the end index.

Inherited Methods
Methods inherited from: Object