Files
marqdo/public/keywords/stdlib.mq.md
T
cflmyandCursor a5d30c00b3 Add bilingual public docs, keyword aliases, and frontmatter stdin for view.
English/Chinese user pages sit side by side; L0 builtins and lib/ text|表 dual APIs land with gold coverage. Capture/view input demos use stdin:/输入: so static export and first page load succeed.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 09:14:26 +08:00

35 lines
470 B
Markdown

---
title: Built-ins len / str / int / type / trim / split / join / at
description: Host builtins for strings and tables
---
# main
Length and type:
*`s` = hello*
*`n` = > len `s`*
> print text=`n`
*`ty` = > type `s`*
> print text=`ty`
Trim, split, join, and index:
*`t` = > trim value= hi *
*`parts` = > split value=a,b sep=,*
*`mid` = > at value=`parts` index=0*
*`j` = > join value=`parts` sep=-*
> print text=`t`
> print text=`mid`
> print text=`j`