1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00
bobbylisp/example/case.hz

13 lines
223 B
Plaintext
Raw Normal View History

2022-03-18 21:53:33 -05:00
fun main: void = do
let foo: int = 3;
case foo of
| 1 -> @write("One");
| 2 -> @write("Two");
| 3 -> do
@write("Three");
end;
2022-03-20 17:54:55 -05:00
| else @write("idk");
2022-03-18 21:53:33 -05:00
end;
2022-03-20 17:54:55 -05:00
end;