> > > > Why can I not append something to a Slice in place, why does it have to > > return a new Slice? > > https://blog.golang.org/slices > > Ok, I will check that, thx.
> > > 2) find(sliceB, item_i_look_for) int, -1 for not found > > > > Why can I not find easily search for an item inside a Slice. Every other > > language I know has this. And I need this in a generic form. > > As you have probably heard, Go does not have generics. Sorry. The > loop that you need to write is fairly short. The loop might be short, but I need to know the type of the items in my Slice. So I need a loop for every datatype!? And I need to name it for each type differently? Why? All I want to be able to do is to find an item in a Slice. Why does "append" work with all types then? Martin -- 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.