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

# Online Help

###### All Products    Maple    MapleSim

MmaTranslator[Mma]

 PadLeft
 return a list with zeros on the left

 Calling Sequence PadLeft(arguments)

Parameters

 arguments - Maple translation of the Mathematica command arguments

Description

 • The PadLeft command returns a list of a specified length padding the list with zeros on the left.

Examples

 > $\mathrm{with}\left({\mathrm{MmaTranslator}}_{\mathrm{Mma}}\right):$

Use the command with the Maple translation.

 > $\mathrm{PadLeft}\left(\left[a,b,c,d,e\right],9\right)$
 $\left[{0}{,}{0}{,}{0}{,}{0}{,}{a}{,}{b}{,}{c}{,}{d}{,}{e}\right]$ (1)

Alternatively, you can use the FromMma command with the evaluate option specified.

 > $\mathrm{with}\left(\mathrm{MmaTranslator}\right):$
 > $\mathrm{FromMma}\left(\mathrm{PadLeft\left[\left\{a, b, c, d, e\right\}, 9\right]},\mathrm{evaluate}\right)$
 $\left[{0}{,}{0}{,}{0}{,}{0}{,}{a}{,}{b}{,}{c}{,}{d}{,}{e}\right]$ (2)

 See Also