Value-expression variables inside *…* / **…** segments no longer need backticks (the segment markers already mark code). Drop trailing spaces and de-tick value-expression variable names in tests and skill docs; keep backticks for string interpolation, call args, and method receivers. Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
388 B
Markdown
31 lines
388 B
Markdown
---
|
|
title: stdlib text and table
|
|
description: trim split join at type + lib imports
|
|
---
|
|
|
|
# main
|
|
|
|
*raw = " hi "*
|
|
|
|
*t = > trim `raw`*
|
|
|
|
> print text=`t`
|
|
|
|
*parts = > split value=a,b,c sep=,*
|
|
|
|
*n = > len `parts`*
|
|
|
|
> print text=`n`
|
|
|
|
*mid = > at value=`parts` index=1*
|
|
|
|
> print text=`mid`
|
|
|
|
*joined = > join value=`parts` sep=-*
|
|
|
|
> print text=`joined`
|
|
|
|
*ty = > type `parts`*
|
|
|
|
> print text=`ty`
|