Refactor executable library handbooks and improve document reading

This commit is contained in:
cflmy committed 2026-11-08 22:19:11 +08:00
1 parent 16c44588d5
commit c50c515c4a
191 files changed
+29572 -7816

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ pub fn builtin_at(value: &Value, index: &Value) -> Result<Value, String> {
Value::Int(n) => *n,
_ => return Err("at needs int index".into()),
};
if i < 0 || (i as usize) >= xs.len() {
if i < 0 || i >= xs.len() as i64 {
return Ok(Value::None);
}
Ok(xs[i as usize].clone())