Optionallist: T[]OptionalindexStart: numberOptionalindexEnd: numberOptionalclone: booleanThe list to cut from.
Position of the first item to take, counting from 0.
Position just after the last item to take; it is not included.
OptionalcloneWhen true, the items are deep-copied so the caller cannot change the list through them; an item that cannot be copied throws.
A list and a range of positions for
lists.getSubList.