SplitScript reference / String / concat

String.concat

Function

String.concat(values: [String]) -> String

Concatenates an array of strings.

A new WebAssembly GC string is allocated.

Parameters

  • values: The strings to concatenate in order.

Effects: allocates

Runtime behavior: available everywhere; synchronous

Examples

Join strings

let label = String.concat(["Stage ", "Forest"])