Skip to content

Instantly share code, notes, and snippets.

@AlexPinhasov
Last active June 11, 2018 13:12
Embed
What would you like to do?
// 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
{
Dashborad.display(errorType: .lights)
break
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment