Constructors
constructor
- new Slice(sequence: Sequence<T>, start: number, end: number, reversed: boolean): Slice
-
Parameters
-
-
start: number
-
end: number
-
reversed: boolean
Properties
reversed
reversed: boolean
Methods
getAbsoluteIndex
- getAbsoluteIndex(relativeIndex: number): number
-
Parameters
Returns number
getItem
- getItem(index: number): T
indexOf
-
Parameters
Returns number
Represents a slice of a sequence of items. This allows to abstract the access to the items and prevent extraneous copies of the sequence.