LIST:SUBLIST

This generator expression belongs to the List Queries family. See that section for related generator expressions.

Syntax

$<LIST:SUBLIST,list,begin,length>

Added in version 3.27.

A sublist of the given list. If length is 0, an empty list will be returned. If length is -1 or the list is smaller than begin + length, the remaining items of the list starting at begin will be returned.