lenghto of array in swift code example
Example 1: array length swift
let arr = [1, 2, 3]
print(arr.count) // 3
Example 2: get length of array swift
// Initialize the Array
var a = [1,2,3]
// Get the size of the array
let size = a.count
print(size)