Skip to content

Instantly share code, notes, and snippets.

@satan87
Last active June 18, 2020 15:11
Show Gist options
  • Save satan87/b897a9ce93ff1227b707f575c4202747 to your computer and use it in GitHub Desktop.
Save satan87/b897a9ce93ff1227b707f575c4202747 to your computer and use it in GitHub Desktop.
// MARK: IF FILTER
var bookBefore2000 = [Book]()
for book in books {
if book.year < 2000 {
bookBefore2000.append(book)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment