Skip to content

Instantly share code, notes, and snippets.

@felipebweber
Last active March 4, 2020 18:33
Show Gist options
  • Save felipebweber/3633735fa77a5197aa2ba5bdcd3f51ba to your computer and use it in GitHub Desktop.
Save felipebweber/3633735fa77a5197aa2ba5bdcd3f51ba to your computer and use it in GitHub Desktop.
let a = 1
let b = 7
let min = a<b ? a : b
let max = a>b ? a : b
print(min)
print(max)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment