cli: bootstrap verified std bytes and math with source imports

This commit is contained in:
dev committed 2026-10-06 14:51:10 +03:00
1 parent 268926ca0f
commit 10a370471b
52 files changed
+1000 -22

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
module demo.standard
import std.bytes;
import std.math;
fn main() -> u64
effects []
{
var data: [u8; 4] = zero;
std.bytes.fill(mut data, 65);
assert(std.bytes.equal(ref data, b"AAAA"));
let index = std.bytes.find(ref data, 65);
if index < data.len { assert(data[index] == 65); }
return std.math.clamp_u64(42, 0, 100);
}