This commit is contained in:
2026-09-23 00:36:22 -04:00
commit 6e4f9cd65a
74 changed files with 57163 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
double: i32 -> i32: @ value: i32 { value * 2 }
square: i32 => i32: @ value: i32 { value * value }
add: (i32, i32) -> i32: @ (left: i32, right: i32) { left + right }
normalize: i32 -> i32: @ value: i32 {
adjusted := value + 1
adjusted->double
}
apply: (i32, i32 -> i32) -> i32: @ (value, operation): {(i32, i32 -> i32)} { value->operation }
factory: i32 => i32 -> i32: @ offset: i32 { @ value: i32 { value + offset } }
initialize: () -> i32: @ () { 1 }
computed := (4, @ value: i32 { value + 1 })->apply