- avoid looping over the entire collection unless a negative index is used. - dont use the get index function for building the slice list, instead loop over the collection until the stop value.
- avoid looping over the entire collection unless a negative index is used. - dont use the get index function for building the slice list, instead loop over the collection until the stop value.