I believe this would allow for cleaner code when working with lists. To get the last element of a list we could do:
world << list[-1] |
Instead of:
world << list[list.len] |
It would also be great if we could extend this to list features similar to the slices used in Python. For example:
var/list/L = list(1,2,3,4,5,6,7,8) |
An optional third element could also be added as the stride:
L[::2] //Returns every other element |