pass empty array to function in swift 5 code example Example: swift empty an array myArray.removeAll()