Avatar
@swift-5.3.3 let array0 = [0, 1, 2, 3, 4].compactMap { $0.isMultiple(of: 2) ? $0 : nil } print(array0)