Files
marqdo/public/keywords/stdlib.mq.md
T
cflmyandCursor 91d51f3f0a Treat bare ids as variables in italic/bold, and land table/quantum follow-ups.
Prefer-var parsing in *…* / **…* (quoted strings for text), table cell expressions, digit map footnotes, and quantum steps/draw with updated golds and LLM sources.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-12 11:21:23 +08:00

35 lines
472 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`