Thanks!
That did it.
On Wednesday, February 12, 2025 at 2:32:27 PM UTC-5 Def Ceb wrote:
> The function passed to DeleteFunc should accept a single element and
> return a boolean indicating whether it should be removed.
> You could do this:
>
> lhr = slices.DeleteFunc(lhr, func(n uint) bool { re
The function passed to DeleteFunc should accept a single element and
return a boolean indicating whether it should be removed.
You could do this:
lhr = slices.DeleteFunc(lhr, func(n uint) bool { return
slices.Contains(lhr_del, n) })
Jabari Zakiya:
I have two slice, lhr and lhr_dels.
I want t
I have two slice, lhr and lhr_dels.
I want to remove everything in lhr_dels from lhr.
I tried these:
lhr = slices.DeleteFunc(lhr, func(n uint) []uint { return lhr_del})
or
lhr = slices.Delete(lhr, lhr_del)
and can't figure out from the error messages|docs how to fix it.
Can someone set me strai