iOS Closures in Swift Building Standard Library Functions Filter

Deysha Rivera
Deysha Rivera
5,088 Points

Characters was obsoleted in Swift 4/5

Just use...

let somePUsers = allUsers.customFilter { $0.username.first == "p" }