Unify bytecode errors with path:line:col, support --stdin-file and live view preset stdin, and ship the S0 standard library with gold coverage. Co-authored-by: Cursor <cursoragent@cursor.com>
37 lines
326 B
Markdown
37 lines
326 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`
|