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

32 lines
700 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`