Skip to content

Instantly share code, notes, and snippets.

@lexuanquynh
Last active July 5, 2022 00:35
Show Gist options
  • Save lexuanquynh/607a9bef58c25be1584ab8bef255f291 to your computer and use it in GitHub Desktop.
Save lexuanquynh/607a9bef58c25be1584ab8bef255f291 to your computer and use it in GitHub Desktop.
let numbers = [0, 2, 4, 6]
let allEven = numbers.allSatisfy { $0 % 2 == 0 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment