Files
marqdo/public/stdlib/文本.mq.md
T
cflmyandCursor a53ebb65ee Add host stdlib modules and unify view/run capabilities.
Ship fs/time/sys/json/net L1 libs (plus existing text/table), default-on host caps with soft exit under view, bilingual public/stdlib docs, and design notes for deferred math/foreign.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 10:03:54 +08:00

348 B


title: lib/文本 — 字符串 description: 去空白、拆分、拼接

lib/文本.mq.md


main

导入 lib/文本.mq.md。函数:去空白(s)、拆分(s, sep)、拼接(xs, sep)。

*t = > 去空白 s= marqdo *

打印 内容=t

parts = > 拆分 s=甲,乙,丙 sep=,

j = > 拼接 xs=parts sep=-

打印 内容=j