Functions

Language 1

Transform values inline. See exactly what comes back.

Built-in functions return new values without AI calls. Use pure functions in bindings, helper bodies, and pipelines. Unseeded shuffle is a whole-binding operation; supply a text seed to use it as a pure function. Bind a result before displaying it in Markdown.

value |> function(extra) means function(value, extra). In the signatures below, T, U, A, and R stand for matching value types, not words you need to write in your source.

Optional results can use first(notes) ?? "No notes yet." for a default only when absent. See optional values and the ?? operator for presence checks, precedence, and a live example.

Callback functions accept _ >= 7 or n => n >= 7, with inferred types and captures of earlier immutable values. See inline lambdas for both syntaxes and nested examples.

1 / 28

Next

Text

concat

Join two texts or append two lists with the same element type.

concat(left: text, right: text) -> textconcat(left: list[T], right: list[T]) -> list[T]

Try it

concat-text.pattern.md
 1
 result

result = concat("Take a ", "pause")
!show {
    Result: {{result}}
}
-> end
Live result

The interactive example loads as you reach it.

Parameters

Arguments are positional and required. A pipeline supplies the first argument.

ParameterTypeDefaultUse & constraints
leftRequiredtext or list[T]—The first text or list.
rightRequiredsame type as left—The second text or list. Both operands must have the same type.

Returned value

text or list[T]

A new value of the same type as both operands. List elements retain their order.

Usage notes

  • No separator is inserted; include spaces or punctuation in your text.
  • Mixed text/list operands and lists with different element types are rejected. Results are bounded to 1 MiB of text or 10,000 list items.
Helpers and pipelines in the language guide