Skip to content

Instantly share code, notes, and snippets.

@mathhun
Created July 6, 2016 02:38
Show Gist options
  • Save mathhun/d266ecd8996fa132815512dfc8d9adc9 to your computer and use it in GitHub Desktop.
Save mathhun/d266ecd8996fa132815512dfc8d9adc9 to your computer and use it in GitHub Desktop.
Ternary Operator
object Main extends App {
import scalaz.syntax.std.boolean._
val x = (1 > 0) ? "true" | "false"
println(x)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment