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>
This commit is contained in:
1 parent
955834e453
commit
784d5ec346
22 files changed
+394
-32
No files matched your search
@@ -0,0 +1,31 @@
|
||||
---
|
||||
title: Mid stdlib — stats and log fields
|
||||
description: Thin mean/median/stdev + structured log fields (Mid2 M10)
|
||||
import stats:lib/stats.mq.md
|
||||
import log:lib/log.mq.md
|
||||
---
|
||||
|
||||
# Closing Mid2 sugar
|
||||
|
||||
Light statistics and optional `fields=` on log lines — no remote sinks, no dataframes.
|
||||
|
||||
# main
|
||||
|
||||
`xs` =
|
||||
|
||||
| |
|
||||
|---|
|
||||
| 10 |
|
||||
| 20 |
|
||||
| 30 |
|
||||
|
||||
*m = > stats.mean list=`xs`*
|
||||
> print text=`m`
|
||||
|
||||
`fld` =
|
||||
|
||||
| step |
|
||||
|------|
|
||||
| done |
|
||||
|
||||
> log.info text="mid2-m10" fields=`fld`
|
||||
@@ -0,0 +1,29 @@
|
||||
---
|
||||
title: 中层标准库 — 统计与日志字段
|
||||
description: 薄均值/中位数/标准差 + 日志 fields(Mid2 M10)
|
||||
导入 统计:lib/统计.mq.md
|
||||
导入 日志:lib/日志.mq.md
|
||||
---
|
||||
|
||||
# Mid2 收口糖
|
||||
|
||||
# main
|
||||
|
||||
`xs` =
|
||||
|
||||
| |
|
||||
|---|
|
||||
| 10 |
|
||||
| 20 |
|
||||
| 30 |
|
||||
|
||||
*m = > 统计.均值 列表=`xs`*
|
||||
> print text=`m`
|
||||
|
||||
`fld` =
|
||||
|
||||
| 步骤 | 状态 |
|
||||
|------|------|
|
||||
| 完成 | ok |
|
||||
|
||||
> 日志.信息 内容="mid2-m10" 字段=`fld`
|
||||
Reference in new issue
Block a user