Created
May 17, 2020 10:28
-
-
Save TungVdMiichi/002ec6414e0acba722d0cb85ca38f6b5 to your computer and use it in GitHub Desktop.
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 urls = items.compactMap { (item) -> URL? in | |
return item.thumbnailURL | |
} | |
// result: [http:b-url.com, http:c-url.com, http:d-url.com] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment