Last active
November 18, 2019 12:11
-
-
Save AlexPinhasov/3aeef45a29675c2ab92c1806b17fc274 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
class CarFleet: CarFleetFeatureToggleLogic { | |
func moveCarsToPosition(cars: [Car], position: Position) { | |
cars.forEach({ transport(car: $0, to: position) }) | |
} | |
func refuel(cars: [Car]) { | |
cars.forEach({ refuel(car: $0, using: fuelToUse) }) | |
} | |
func refuel(car: Car, using: Fuel) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment