Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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