#Array indexing

6 messages · Page 1 of 1 (latest)

desert cloud
#

Is there a way to get all elements from an array except the last one?
Something like arr[:-1] in python

sonic island
#

You mean like foo := bar[:len(bar)-1]?

#

Also, these are slices, not arrays.

#

That might help you look stuff up 🙂

desert cloud
#

this helps :D