Skip to content

@lang:str.concat

Concatenate strings together.

On-chain (@lang:str.concat!): Live parts remain unresolved until execution; each input is resolved once when the calldata is assembled.

Returns: string

@lang:str.concat(first ...rest)
NameTypeDescription
firststringFirst string segment
[...rest]stringStrings to append
  • @str.join — join array elements with a delimiter
  • @concat — concatenate arrays

Concatenate constant or live string parts in order. Each supplied part is resolved once by the core (gather), which then calls Operations' concat with the assembled bytes[] (get). There is no four-live-part limit; gas and calldata size still bound execution. Use @str.join! to insert a delimiter.