I want to create a list with a specified index at the beginning, how about a case like this :
from start a list => List data = [1,2,3,4,5];
to new list newData = [3,4,5];
and how to make the index start from 2, in list newData!
I want to create a list with a specified index at the beginning, how about a case like this :
from start a list => List data = [1,2,3,4,5];
to new list newData = [3,4,5];
and how to make the index start from 2, in list newData!
2
Answers
you can use
skip
method from list.its more safe instead of
getRange
, because it will not throw error index range if the list are empty.or you can also combine with
take()
mehtod.