Removes all elements from the slice that meet a condition defined by a function.
slices.DeleteFunc([]int{1, 2, 3}, func(v int) bool { return v%2 == 0 })