#Order does matter

func remove(slice []int, s int) []int {
    return append(slice[:s], slice[s+1:]...)
#Order does not matter 
func remove(s []int, i int) []int {
    s[i] = s[len(s)-1]
    return s[:len(s)-1]
}