Initial Commit

This commit is contained in:
SoraKatadzuma committed 2026-12-06 13:52:57 -06:00
commit 528ccf1523
782 files changed
+145156

No files matched your search

@@ -0,0 +1,17 @@
import std::io;
def main(): void {
var a: i64[4] = [10, 20, 30, 40];
val s := span::<i64>::over(&a as *i64, 4);
println($"{s[0]} {s[3]} of {s.length}");
a[1] = 99;
println($"sees {s[1]}");
var total := 0;
for x in s { total += x; }
println($"sum {total}");
for i, x in s { print($"{i}:{x} "); }
println("");
val none := span::<i64>::blank();
var seen := 0;
for x in none { seen++; }
println($"empty {seen}");
}