Skip to content

@lang:bytes.concat

Concatenate bytes values together.

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

Returns: bytes

@lang:bytes.concat(first ...rest)
NameTypeDescription
firstbytesFirst bytes value
[...rest]bytesBytes values to append

Concatenate constant or live byte parts in order. Each supplied part is resolved once: the core gathers the parts into one bytes[] (gather) and calls Operations' concat with it (get), so there is no four-live-part limit.