blog-static/code/compiler/10/examples/if.txt
Danila Fedorin 577e0ad930
Some checks failed
continuous-integration/drone/push Build is failing
Finalize draft of polymorphism post
2020-03-25 03:22:21 -07:00

9 lines
160 B
Plaintext

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 }