Answers for "how to add 3 to all elements in my array swift"

3

swift append to array

var numbers = [1, 2, 3, 4, 5]
numbers.append(100)
print(numbers)
// Prints "[1, 2, 3, 4, 5, 100]"
Posted by: Guest on November-08-2019

Code answers related to "how to add 3 to all elements in my array swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language