FUNCTION
byte_array.from_list
function from_list(list: list<integer>): byte_arrayCreate a byte_array from a list of integers.
The inverse of byte_array.to_list().
All integers in the passed list are treated as single-byte values, i.e. they must be in the range
0 <= x < 256, and therefore the returned byte_array will be equal in size to the passed list.
Parameters
- list — the list of integers
Throws
exception— if any element in the list is less than zero or greater than 255
Since
0.9.0
© 2026 Chromia