On Thursday, March 1, 2018 at 11:08:09 AM UTC-5, Jan Mercl wrote:
>
> On Thu, Mar 1, 2018 at 4:50 PM <[email protected] <javascript:>> wrote:
>
> > copy(a[1:], a) is equivalent to _ = append(s[1:1], s[:len(s)-1]...)
>
> https://play.golang.org/p/uiz2ANSxjbA
>
>
If 
b = append(b[1:1], b[:len(b)-1]...)
is changed to
_ = append(b[1:1], b[:len(b)-1]...)
then it is equivalent to copy.
 

>
> -- 
>
> -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.

Reply via email to