u8/s8/u16/s16/u32/s32/u64/s64array_set


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.

Examples:


let a = #u8[1, 2, 3, 4, 5]
u8array_set(a, 3, 100)
a
// #u8[1, 2, 3, 100, 5]
      

Also see:

u8/s8/u16/s16/u32/s32/u64/s64array_at


Core Module Index | Main Index