blog-static/code/compiler/10/examples/if.txt

9 lines
160 B
Plaintext
Raw Normal View History

2020-03-25 03:22:21 -07:00
data Bool = { True, False }
defn if c t e = {
case c of {
True -> { t }
False -> { e }
}
}
defn main = { if (if True False True) 11 3 }