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


u8array_shrink(a, n)
s8array_shrink(a, n)
u16array_shrink(a, n)
s16array_shrink(a, n)
u32array_shrink(a, n)
s32array_shrink(a, n)
u64array_shrink(a, n)
s64array_shrink(a, n)
      

Reduces the size of the integer array a to n.

Return void.

Examples:


let a = #u8[110, 221, 87, 88]          
u8array_shrink(a, 2)
a
// #u8[110, 221]
      

Also see:

subu8/s8/u16/s16/u32/s32/u64/s64array
u8/s8/u16/s16/u32/s32/u64/s64array_append


Core Module Index | Main Index