diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2025-10-23 16:54:54 -0500 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2025-10-23 16:54:54 -0500 |
| commit | c658b86a0770ba99c51bdf4e2df9544363468253 (patch) | |
| tree | c7dc0b3f340f818b364b322200d9cc9d92460fd2 /examples/for.nya | |
| parent | 2c44d648157a6dbfd847e939016316032c6742a4 (diff) | |
| download | calico-c658b86a0770ba99c51bdf4e2df9544363468253.tar.gz | |
Updated to zig 0.15.1 -- BREAKING
Diffstat (limited to 'examples/for.nya')
| -rw-r--r-- | examples/for.nya | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/for.nya b/examples/for.nya new file mode 100644 index 0000000..030e17d --- /dev/null +++ b/examples/for.nya @@ -0,0 +1,7 @@ +fn main() -> i32 { + const: [i32] nums = 0..10; + varbl: i32 sum = 0; + for(0..10 : i) { + sum = sum + i; + } +} |
