Swift Guard vs If déclaration
func voteEligibility() {
var age = 42
if age >= 18 {
print("Eligible to vote")
}
else {
print("Not eligible to vote")
}
}
voteEligibility()
SAMER SAEID