Answers for "how to create int array in 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 create int array in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language