This commit is contained in:
agra
2026-02-28 18:03:38 +02:00
parent 2552882ce6
commit 6a920dbd2c
24 changed files with 14084 additions and 780 deletions

8
examples/test_closure.sx Normal file
View File

@@ -0,0 +1,8 @@
#import "modules/std.sx";
main :: () {
n := 42;
f := closure((x: s64) -> s64 { x + n; });
r := f(10);
print("r: {}\n", r);
}