Created
March 31, 2015 14:09
-
-
Save shigemk2/c53bcce89c49eb35606f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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