Upvote:2

Aprove answer
func f1() -> Bool {
    print("Left side evaluated to `false`")
    return false
}

func f2() -> Bool {
    print("Right side evaluated")
    return true
}

print(f1() && f2())

// Outputs:
// Left side evaluated to `false`
// false

Credit Goes to: stackoverflow.com

Related question with same questions but different answers