Files
marqdo/public/stdlib/table.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

26 lines
496 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`