Created
October 7, 2018 16:57
-
-
Save yunustek/759b8fb796148380d2167cd724b8689a to your computer and use it in GitHub Desktop.
Testing Sequence Elements
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 names = ["Sofia", "Camilla", "Martina", "Mateo", "Nicolás"] | |
let allHaveAtLeastFive = names.allSatisfy({ $0.count >= 5 }) | |
// allHaveAtLeastFive == true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment