@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
Syntax
Section titled “Syntax”@lang:bytes.concat(first ...rest)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
first | bytes | First bytes value |
[...rest] | bytes | Bytes values to append |
See Also
Section titled “See Also”- @concat — concatenate arrays
- @str.concat — concatenate strings
On-chain face (@bytes.concat!)
Section titled “On-chain face (@bytes.concat!)”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.