Returns a subsequence with the given start and length. The following properties must hold: pos >= 0, length >= 0, length <= size() - pos @param pos starting position @param length number of items @param job interruptible job @return new subsequenc
(final long pos, final long length, final Job job)
| 119 | * @return new subsequence |
| 120 | */ |
| 121 | public final Value subsequence(final long pos, final long length, final Job job) { |
| 122 | return length == 0 ? Empty.VALUE : |
| 123 | length == 1 ? itemAt(pos) : |
| 124 | length == size() ? this : |
| 125 | subSeq(pos, length, job); |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * Returns a subsequence with the given start and length. |