Skip to content

Instantly share code, notes, and snippets.

Created Jan 31, 2015
What would you like to do?
val a = 99
val i = 1
println(if (a < 0) -a else a)
println(if (i == 0) "a" else "b")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment