marqdo

文本ok

stdlib/文本.mq.md

Structure

import文本:lib/文本.mq.md
fn · h1main
comment

导入 lib/文本。括号路径或经典点号调用均可。

bind `t` = [文本.去空白] s= marqdo
call> 打印 内容=`t`
bind `parts` = [文本.拆分] s=甲,乙,丙 sep=,
bind `j` = [文本.拼接] xs=`parts` sep=-
call> 打印 内容=`j`
Functions
Variables
  • j text
    甲-乙-丙
  • parts list · 3
    #value
    1
    2
    3
  • t text
    marqdo

Execution

marqdo 甲-乙-丙

Source

---
title: lib/文本 — 字符串
description: 去空白、拆分、拼接(代码即文档试点)
导入 文本:lib/文本.mq.md
---

# main

导入 lib/文本。括号路径或经典点号调用均可。

**`t` = [文本.去空白] s="  marqdo  "**
**打印 内容=`t`**

**`parts` = [文本.拆分] s="甲,乙,丙" sep=","**
**`j` = [文本.拼接] xs=`parts` sep="-"**
**打印 内容=`j`**

Variable