Turtle, Observer, Patch |
sublist list begin end
List | List that you want to subset | |
Integer | The beginning index that you want to keep | |
Integer | The ending index that you want to keep |
sublist [1 2 3 4 5] 2 4
[2 3 4]
sublist [1 2 3 4 5] 0 0
[1]
sublist [1 2 3 4 5] 4 5
[4 5]