Skip to content

Instantly share code, notes, and snippets.

@AlexPinhasov
Last active June 11, 2018 13:12
Show Gist options
  • Save AlexPinhasov/479aef96dbfc324db0d06d8cbb4bb93d to your computer and use it in GitHub Desktop.
Save AlexPinhasov/479aef96dbfc324db0d06d8cbb4bb93d to your computer and use it in GitHub Desktop.
// 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