text

Built-ins

Canonical ID: core.text. Nederlands: tekst.

Converts a value to deterministic display text. Existing text stays unquoted; Booleans and absence use the canonical strings “true”, “false”, and “none” in both source locales. Lists and maps have readable delimiters; functions have a descriptive marker. This is display conversion, not a JSON encoder or a source-code serializer.

Signature

text(value)

Arguments

Parameter Type Requirement
value Any Any Pliro value.

Return value

Text.

Example

# language: en
let score = 12
say "Score: " + text(score)
say text(true), text(false), text(none)

Prints Score: 12 and true false none.

Notes and common mistakes

Use the function name for your source language. Its canonical ID is a shared documentation label; you do not type that ID as a call. Giving your own variable or function the same name can hide the built-in. Supply the documented arguments and value types. Pliro reports mismatches when checking can detect them, or when the call runs.

say · length · Programming guides · Host support · Calls and arguments