Skip to content

Instantly share code, notes, and snippets.

@mattrob33
Created February 24, 2022 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattrob33/6765498a7610f71cc6508f9b428e1c3a to your computer and use it in GitHub Desktop.
Save mattrob33/6765498a7610f71cc6508f9b428e1c3a to your computer and use it in GitHub Desktop.
fun getCoffee(): Triple<Roast, Size, Boolean>
...
val coffee = getCoffee()
print("A ${coffee.second}, ${coffee.first} roast coffee with ${if (coffee.third) "" else "no "}room for cream.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment