Contact: aviboots(AT)netvision.net.il
40,954 questions
53,418 answers
573 users
import Foundation var array = [1, 2, 3, 4, 5] // Check if the array is not empty if !array.isEmpty { // Remove the first element array.remove(at: 0) } // Print the updated array print(array.map { "\($0)" }.joined(separator: " ")) /* run: 2 3 4 5 */