u8array_set(a, n, i)
s8array_set(a, n, i)
u16array_set(a, n, i)
s16array_set(a, n, i)
u32array_set(a, n, i)
s32array_set(a, n, i)
u64array_set(a, n, i)
s64array_set(a, n, i)
Set the element at index n
in the integer array a
to i
.
let a = #u8[1, 2, 3, 4, 5]
u8array_set(a, 3, 100)
a
// #u8[1, 2, 3, 100, 5]