Hacker News
new
past
comments
ask
show
jobs
points
by
joaohaas
9 hours ago
|
comments
by
maleldil
9 hours ago
|
[-]
You can have that with generic functions, although Go's lambda syntax is too verbose. The slices package has DeleteFunc, which is kind of the opposite. I don't know why they have Filter.
https://pkg.go.dev/slices#DeleteFunc
reply