View Subcategory
Remove an element from a list by index
Given the list
[Apple, Banana, Carrot], remove the first element to produce the list [Banana, Carrot]
go
offset := 0
list = append(list[:offset], list[offset+1:]...)
list = append(list[:offset], list[offset+1:]...)
Rotate a list
Given a list
["apple", "orange", "grapes", "bananas"], rotate it by removing the first item and placing it on the end to yield ["orange", "grapes", "bananas", "apple"]
