Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created March 31, 2015 14:09
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 shigemk2/c53bcce89c49eb35606f to your computer and use it in GitHub Desktop.
Save shigemk2/c53bcce89c49eb35606f to your computer and use it in GitHub Desktop.
object Bool extends Enumeration {
type Bool = Value
val True, False = Value
}
object Main {
import Bool._
def main(args: Array[String]): Unit = {
println(True)
println(False)
println(Bool(0))
println(Bool(1))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment