Files
marqdo/tests/lib/stats-log-smoke.mq.md
T
cflmyandCursor 784d5ec346 feat(stdlib): Mid2 M10 stats and log fields
Add thin mean/median/stdev and optional structured fields on log
lines; close Mid2 M7–M10 (zip skipped).

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

34 lines
386 B
Markdown

---
title: lib/stats + log fields M10 smoke
import stats:lib/stats.mq.md
import log:lib/log.mq.md
---
# main
`xs` =
| |
|---|
| 1 |
| 2 |
| 3 |
| 4 |
*m = > stats.mean list=`xs`*
> print text=`m`
*med = > stats.median list=`xs`*
> print text=`med`
*s = > stats.stdev list=`xs`*
> print text=`s`
`fld` =
| user | n |
|------|---|
| alice | 3 |
> log.info text="hi" fields=`fld`