Created
October 24, 2017 18:27
-
-
Save thobson/f9655d2f303c9d4c4191dc7473904f97 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
implicit val vehicleLikeCar = ... | |
implicit val vehicleLikeBus = ... | |
def driveAndReturn[A](vehicle: A)(implicit vehicleLike: VehicleLike[A]): A = { | |
println(vehicleLike.drive(vehicle)); vehicle | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment