Files
marqdo/tests/lib/csv-smoke.mq.md
cflmyandCursor 687c168014 feat(parse): use nested YAML import: maps instead of one-liner binds
Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target
entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the
old one-liner form, and migrate lib/ext/examples/tests/docs accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 19:33:58 +08:00

24 lines
446 B
Markdown

---
markup: occlusion
title: lib/csv smoke
import:
csv: lib/csv.mq.md
---
# main
**raw = "name,note\nalice,\"hi, there\"\nbob,ok\n"**
**rows = > csv.parse text=`raw`**
**n = > len `rows`**
> print text=`n`
**r0 = > at value=`rows` index=0**
> print text=[name](access(`r0`, "name"))
> print text=[note](access(`r0`, "note"))
**out = > csv.stringify rows=`rows`**
**rows2 = > csv.parse text=`out`**
**n2 = > len `rows2`**
> print text=`n2`