Files
marqdo/public/stdlib/table.mq.md
T
cflmyandCursor ecc92f473a Unify frontmatter imports as import bind:target and drop > imports.
`import json:lib/json.mq.md` binds file libraries; `import fmt:time.format`
binds member short names (replaces `> use`). Legacy `> path.mq.md` / `> use`
now hard-error with a hint. Migrates repo docs, skills, ext, lib, public, examples,
man-test and tests; adds a negative gold and updates view/catalog rendering.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 10:03:21 +08:00

26 lines
488 B
Markdown

---
title: lib/table — collections
description: put, append, and map helpers
import table:lib/table.mq.md
---
# main
Prefer `table.put` for element updates (`at=` text key, **1-based** int, or list path). Use `json` for parse/stringify only.
*`h` = > table.put in=None at=Authorization value=Bearer-demo*
`xs` =
| v |
|---|
| a |
| b |
*`xs` = > table.put in=`xs` at=1 value=A*
*`n` = > table.rows xs=`xs`*
> print text=`h`[^Authorization]
> print text=`xs`[^1]
> print text=`n`