Skip to content

Instantly share code, notes, and snippets.

@cutiko
Created June 6, 2019 15:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Inifinity is a double
fun main(args: Array<String>) {
System.out.println("Lets buy beer")
buyBeer(1.0)
buyBeer(2.0)
buyBeer("Infinity".toDouble())
}
fun buyBeer(beer : Double) = System.out.println("You are buying $beer beers and is more than one beer ${beer > 1}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment