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>
37 lines
316 B
Markdown
37 lines
316 B
Markdown
---
|
|
title: len str int
|
|
description: Built-in conversions and length
|
|
---
|
|
|
|
# main
|
|
|
|
*s = "hello"*
|
|
|
|
*n = > len `s`*
|
|
|
|
> print text=`n`
|
|
|
|
`xs` =
|
|
|
|
| item |
|
|
|------|
|
|
| a |
|
|
| b |
|
|
| c |
|
|
|
|
*m = > len `xs`*
|
|
|
|
> print text=`m`
|
|
|
|
*t = > str 42*
|
|
|
|
> print text=`t`
|
|
|
|
*i = > int `t`*
|
|
|
|
> print text=`i`
|
|
|
|
*j = > int True*
|
|
|
|
> print text=`j`
|