History of 2020-03-05 Capping an array in Swift

2020-03-05
10:53 UTC Revision 1 . . . . 6130Do you want to cap an array in Swift to a certain size? Here's how: var array = ["a", "b", "c", "d", "e"] array.replaceSubrange(3..., . . .