Swift: How to change a range of values in array?

In Swift, it is possible to replace a range of values in a array with a new set of values. The length of items to be replaced in an array need not to be equal to the length of items in hand.

Leave a Reply

%d bloggers like this: