Last active
June 18, 2020 15:11
-
-
Save satan87/b897a9ce93ff1227b707f575c4202747 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 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