Question 1/12: This code is valid Swift – true or false?
Hint: Click to show.
var flyDrone = { (hasPermit: Bool) -> Bool in
if hasPermit {
print("Let's find somewhere safe!")
return true
}
print("That's against the law.")
return false
}
Link copied to your pasteboard.