Abstract supertype of ranged objects which map a range
Comparable keys to ranges of values. The type
Span abstracts the type of the resulting
A span may be obtained from an instance of
using the span operator:
shared formal Span segment(Index from, Integer length)
Obtain a segment containing the mapped values starting from the given index, with the given length.
shared formal Span span(Index from, Index to)
Obtain a span containing the mapped values between the two given indices.
shared formal Span spanFrom(Index from)
Obtain a span containing the mapped values between the starting index and the end of the receiver.
shared formal Span spanTo(Index to)
Obtain a span containing the mapped values between the start of the receiver and the end index.
|Methods inherited from: Object|