In Xcode 11.3 or 12.2 Sample code:
let numbers = [1, 2, 3, 4, 5, 6] let dropSlices = numbers.drop { $0 > 3 } print(dropSlices)