Add functions and lists

This commit is contained in:
2025-11-15 13:52:23 +11:00
parent 18fadc18ed
commit c9c00e219d
4 changed files with 283 additions and 8 deletions

6
tests/functions.ppl Normal file
View File

@@ -0,0 +1,6 @@
(let x (function int [function in int num]
(print "recursively called" (+ num 1) "times")
(in in (+ num 1))
))
(x x 1)