Last active
June 24, 2020 13:29
-
-
Save Sethathi/ee9f842a77e2c2911052b639243b4a63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// How can this conditional be simplified? | |
let price = 5 | |
if price >= 1 && price <= 5 { | |
print("Price within range") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment