Last active
February 24, 2019 08:16
-
-
Save AlexPinhasov/95431361aa4c726459b53566f9481841 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
extension Car { | |
// Execution Functions | |
private func turnExteriorLightsOn() { | |
leftFrontLight .isOn = true | |
rightFrontLight.isOn = true | |
leftBackLight .isOn = true | |
rightBackLight .isOn = true | |
} | |
private func checkForBurnedBulbs() { | |
for lightBulb in bulbs where !lightBulb.isUseable { | |
Dashboard.display(errorType: .lights) | |
break | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment