|| at Jan 13, 2015 at 3:15 pm
On Tuesday, January 13, 2015 at 9:44:39 AM UTC-5, Konstantin Khomoutov wrote:
On Tue, 13 Jan 2015 06:38:14 -0800 (PST)
This isn't valid syntax, and doesn't properly remove an item. You're
looking for something like
a = a[:i+copy(a[i:], a[i+1:])]
s = append(s[:i],s[i+1:])
your append needs and ellipsis [...]https://github.com/golang/go/wiki/SliceTricks
They are essentially identical. I prefer the copy, only because I think
it's more obvious what you're doing.
You might consider using a linked list  or a map instead.
That's not really helpful, since one often needs to remove an element from
a slice even when it is the proper data structure.
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.