Files
rust-mal/test.mal
teo3300 136ef726f3 Functional programming goes brr
- reduced some indentation

Signed-off-by: teo3300 <matteo.rogora@live.it>
2023-11-17 22:15:38 +09:00

22 lines
418 B
Plaintext

(def! func ; ole
(fn* (a b c) ; this is all a bunch
"This function does nothing useful"
; of useless comments
(def! d (+ a b)) ; to check if the parser
(- c d))) ; is able to ignore them
(test 1 2 14) (help +)
(help -)(func 1 2 3)
(help test)
(help func)
(help 1)
; Maaged to fix the do form
(do
(+ 2 2)
(+ 3 4))
; I even implemented return statement
(exit (func 1 2 3))