Created
September 27, 2012 12:30
-
-
Save hbbio/3793742 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
pp = function(x) { Debug.jlog("{x}")} | |
type material = { wood } or { plastic } or { metal } // or { leather } | |
function burns(material m) { | |
match (m) { | |
case {wood} | |
case {plastic}: true; | |
case {metal}: false; | |
} | |
} | |
pp(burns({wood})) | |
// pp(burns({leather})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment