Hacker News new | ask | show | jobs
by costco 883 days ago
There is no copying of memory going on, the a[i: i+4] or a[i: i+4: i+4] slice references the same underlying data as in a.