#List Cutoff

1 messages · Page 1 of 1 (latest)

ocean pagoda
#

Is there a way to cut off a list? For example if I have a ‘[List Create]’ with 10 items, and an int of 4, I only get the first 5 elements of the list and cutoff the rest?

cosmic fossil
# ocean pagoda Is there a way to cut off a list? For example if I have a ‘[`List Create`]’ with...

just add into a new list variable up to the int + 1 (as u say 4, but u want the first 5, so add 1)

there should be a single chip ver tho, i alr tried suggesting to devs, probably just have other priorities as usual. Its common in programming, in python its called slicing, which also works on strings bc python treats strings almost like arrays bc they're arrays bc python is W general purpose, but all we have is substring which is only limited to string

ocean pagoda