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

9 lines
160 B
Plaintext
Raw Permalink Normal View History

2020-09-08 18:38:05 -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 }