cleanup, docs

This commit is contained in:
root
2026-06-16 23:02:45 +00:00
parent ea08d5f28b
commit b8b56cf3dd
160 changed files with 1076 additions and 511 deletions
+10 -1
View File
@@ -34,4 +34,13 @@ Example:
:example
print("zip_list example\n");
DValue entries;
entries["a.txt"] = "alpha";
entries["b.txt"] = "beta";
zip_create("/tmp/doc-ziplist.zip", entries);
DValue listing = zip_list("/tmp/doc-ziplist.zip");
String names = "";
listing["entries"].each([&](DValue e, String key) {
names += (names == "" ? "" : ", ") + e["name"].to_string();
});
print(listing["count"].to_u64(), " entries: ", names, "\n");