Last active
July 5, 2022 00:35
-
-
Save lexuanquynh/86fc57bcb16c470c937c72a2b03e21e0 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 numbers = [3, 7, 4, -2, 9, -6, 10, 1] | |
let firstNegative = numbers.filter { $0 < 0 }.first |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment