Skip to content

Instantly share code, notes, and snippets.

@yunustek
Created October 7, 2018 16:57
Show Gist options
  • Save yunustek/759b8fb796148380d2167cd724b8689a to your computer and use it in GitHub Desktop.
Save yunustek/759b8fb796148380d2167cd724b8689a to your computer and use it in GitHub Desktop.
Testing Sequence Elements
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