Concept Flow - Slice length and capacity
Create array
Create slice from array
Slice has length and capacity
Length = number of elements in slice
Capacity = elements from start to array end
Use len() and cap() to get values
Slice can grow up to capacity
Appending beyond capacity creates new array
This flow shows how a slice is created from an array, how its length and capacity are set, and how they affect slice behavior.