FUNCTION
byte_array.repeat
function repeat(n: integer): byte_arrayRepeats this byte_array n times.
Examples:
x'1234abcd'.repeat(3)returnsx'1234abcd1234abcd1234abcd'x''.repeat(3)returnsx''x'1234abcd'.repeat(0)returnsx''
Parameters
- n — the number of times to repeat this byte_array
Throws
exception— when: -nis negative -nis greater than(2^31)-1- the resulting byte array has size greater than(2^31)-1
Since
0.11.0
© 2026 Chromia