Len and Cap

A slice is an abstraction that uses an array behind the scenes.

The cap() function reports the capacity of the underlying array. len() tells you how many items are in the array.


len() // Quantity of items
cap() // Storage capacity
                        
len_cap.go