Pad - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


ListTools

  

Pad

  

pad the elements in a list

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Pad[N](pd[1], ..., pd[N-1], L, pd[N], ...)

Parameters

N

-

positive integer; location of list L in the argument sequence

L

-

list

pd[1], p[2], ...

-

objects to pad the list elements with

Description

• 

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], ....

Examples

withListTools:

La,b,c

La,b,c

(1)

Pad2LL1,L,RR1,RR2

LL1,a,RR1,RR2,LL1,b,RR1,RR2,LL1,c,RR1,RR2

(2)

See Also

list

ListTools

type[list]