(index: number)
| 13 | if (_end > _arr.length) { this._end = _arr.length } |
| 14 | } |
| 15 | public get(index: number): T { |
| 16 | if (index < 0 || index >= this.len()) { throw new Error('Index out of range') } |
| 17 | return this._arr[index + this._start] |
| 18 | } |
| 19 | public len(): number { return this._end - this._start } |
| 20 | } |
| 21 |
no test coverage detected