Splits the list at the specified index
(List<T>, List<T>) splitAt(int index) { if (index < 0 || index > length) { throw RangeError('Index $index out of bounds'); } return (sublist(0, index), sublist(index)); }