Files
marqdo/tests/lib/table-list-mid.mq.md
T
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

33 lines
704 B
Markdown

---
title: table list mid smoke
import:
table: lib/table.mq.md
---
# main
**xs = > split value="3,1,2,1" sep=","**
**xs = > table.sort list=`xs`**
**s = > join value=`xs` sep=","**
> print text=`s`
**u = > table.unique list=`xs`**
**uj = > join value=`u` sep=","**
> print text=`uj`
**ch = > table.chunk list=`xs` size=2**
**n = > len `ch`**
> print text=`n`
**a = > split value="a,b" sep=","**
**b = > split value="1,2,3" sep=","**
**z = > table.zip a=`a` b=`b`**
**zn = > len `z`**
> print text=`zn`
**nested = > table.append list=None item=`a`**
**nested = > table.append list=`nested` item=`b`**
**flat = > table.flatten list=`nested`**
**fj = > join value=`flat` sep=","**
> print text=`fj`