ludus/hello.ld

8 lines
126 B
Plaintext
Raw Normal View History

2022-04-04 23:07:54 +00:00
fn explode_if_ten {
(10) -> panic! ("That was ten")
(x) -> print ("Ok, not ten!")
}
explode_if_ten (8)
explode_if_ten (10)