On Thu, Mar 1, 2018 at 5:13 PM <[email protected]> wrote: > _ = append(b[1:1], b[:len(b)-1]...)
Bad reading, my fault. Anyway, I think it should now be clear that append depends on the 'inteligence' of copy as it knows when to move things around from the beginning and when to start from the end. IOW, yes, append can simulate copy because append depends on how is copy implemented. Otherwise it would have to implement copy by itself. Copy is the lower layer and IMO it _is_ essential. IIRC, append was not even part of the language at the time of the public release. -- -j -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
