Skip to content

Instantly share code, notes, and snippets.

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