ArrayPad
ArrayPad(list, n)
adds
n
times0
on the left and right of thelist
.
ArrayPad(list, {m,n})
adds
m
times0
on the left andn
times0
on the right.
ArrayPad(list, {m, n}, x)
adds
m
timesx
on the left andn
timesx
on the right.
Examples
>> ArrayPad({a, b, c}, 1, x){x,a,b,c,x}
Implementation status
- ✅ - full supported