slice print

This commit is contained in:
agra
2026-02-10 20:23:37 +02:00
parent 3fde080092
commit bba26ca0d7
3 changed files with 129 additions and 8 deletions

View File

@@ -33,11 +33,7 @@ quickSort :: (items: []$T) {
}
main :: () {
arr := []s32.[1, 2, 3, 5, 2, 2, 3, 4, 5, 6, 6, 1];
arr : []s32 = .[333, 2, 3, 5, 2, 2, 3, 4, 5, 6, 6, 1];
quickSort(arr);
for arr {
if it_index > 0 { write(", "); }
print("{}", it);
}
write("\n");
print("{}\n", arr);
}