ListTools
Pad
pad the elements in a list
Calling Sequence
Parameters
Description
Examples
Pad[N](pd[1], ..., pd[N-1], L, pd[N], ...)
N
-
positive integer; location of list L in the argument sequence
L
list
pd[1], p[2], ...
objects to pad the list elements with
The Pad[N](..., L, ...) function returns a new list that contains the elements of list L surrounded by the specified objects pd[1], pd[2], ....
In the list that is returned by Pad, each element of L is located at position N in the series of specified objects pd[1], pd[2], ....
with⁡ListTools:
L≔a,b,c
Pad2⁡LL1,L,RR1,RR2
LL1,a,RR1,RR2,LL1,b,RR1,RR2,LL1,c,RR1,RR2
See Also
type[list]
Download Help Document