Last active
July 5, 2022 00:34
-
-
Save lexuanquynh/16a71bfc015c9b674f2c70707d53586c 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.first(where: { $0 < 0 }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment