Concept Flow - Slice and array relationship
Declare array with fixed size
Create slice referencing array
Modify slice element
Array element changes too
Modify array element
Slice element changes too
Slice length and capacity tracked
Slice can be resliced within capacity
End
This flow shows how a slice points to an underlying array, so changes in one reflect in the other, and how slice length and capacity control access.