Created
October 18, 2022 15:16
-
-
Save hmlongco/022ca86724d4d5319e781ab31c9aa583 to your computer and use it in GitHub Desktop.
Filtered Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let tableViewDataSource = users | |
.filter { $0.age > 21 && $0.name != "Simon" && $0.phone.contains("iPhone") } | |
.map { ViewModel(cellTitle: $0.name, cellSubtitle: $0.phone) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment