let array = [1, 1, 1] let hasAllItemsEqual = array.dropFirst().allSatisfy({ $0 == array.first }) print(hasAllItemsEqual) // prints: true