-
-
Save mattrob33/efd852b6c641dbc407ef3a067ed4ea43 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
data class Coffee( | |
val roast: Roast, | |
val size: Size, | |
val leaveRoom: Boolean | |
) | |
... | |
fun getCoffee(): Coffee | |
... | |
val coffee = getCoffee() | |
print("A ${coffee.size}, ${coffee.roast} roast coffee with ${if (coffee.leaveRoom) "" else "no "}room for cream.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment