pad the elements in a list - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Tables, lists, and sets : ListTools Package : ListTools/Pad

ListTools[Pad] - pad the elements in a list

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:

L:=a,b,c

L:=a,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]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam