Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment