Skip to content

Instantly share code, notes, and snippets.

@lexuanquynh
Last active July 5, 2022 00:35
Show Gist options
  • Save lexuanquynh/86a68f6070bfe9989127a87ff598a196 to your computer and use it in GitHub Desktop.
Save lexuanquynh/86a68f6070bfe9989127a87ff598a196 to your computer and use it in GitHub Desktop.
let numbers = [0, 4, 2, 8]
let minNumber = numbers.sorted().first
let maxNumber = numbers.sorted().last
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment