Created
May 14, 2020 04:22
-
-
Save lu4nm3/f20b2210b97b88c182176237b5bb925c 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
object OutsourcedPerishables { | |
implicit val iceCreamPerishable: Perishable[IceCream] = new Perishable[IceCream] { | |
def expired(i: IceCream): Boolean = true // in reality you would actually calculate the expiration for ice cream | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment