vec.subvector(
vector as vec.vector,
start as Number,
[length as Number?]
) as vec.vector
Summary
Returns a subvector of the input vector, starting at the specified index, with the specified length (optional).
Parameters
vector
The input vector.
start
The zero-based index of the input vector from which to start (inclusive).
length
The length of the subvector. If not provided, returns a subvector beginning from index at start
to the end of the input vector. If length is greater than the number of elements left in the input vector,
throw VEC-OUTOFBOUNDS.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.