Arrays · foundations
A slice is a view.
It does not copy the array. It points at a window inside the same memory.
nums:= []int{2, 5, 8, 13}
Meet the backing arrayFour values, stored together in one place.
Concept linked
You saw the memory.
Array and slice now connect as one mental model.
Slice intuitionFoundation mastered
+40