Subslicing a slice is just creating another view to the same backing memory.
It's a zero-copy operation.

hth,
-s

sent from my droid

On Sat, Oct 27, 2018, 15:31 Sayan Shankhari <sayanthecomputer...@gmail.com>
wrote:

> Hello Masters,
> This is from a beginner in go. Please read the code for Swapping a 64
> element array using two 32 element arrays. I have used two ways (OPTIONs),
> one is working, the other is not. Please tell me where I am wrong and what
> is the real concept in this language.
> Thank You.
>
> --
> 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.
>

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

Reply via email to