MmaTranslator[Mma] - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Connectivity : Mathematica Translator : Mma : MmaTranslator/Mma/Insert

MmaTranslator[Mma]

 Insert
 insert an element into a list

 Calling Sequence Insert(arguments)

Parameters

 arguments - Maple translation of the Mathematica command arguments

Description

 • The List command inserts an element in a list at a specified location.

Examples

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

Use the command with the Maple translation.

 > $\mathrm{Insert}\left(\left[2,4,8,10\right],6,\left[3\right]\right)$
 $\left[{2}{,}{4}{,}{6}{,}{8}{,}{10}\right]$ (1)

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

 > $\mathrm{with}\left(\mathrm{MmaTranslator}\right):$
 > $\mathrm{FromMma}\left(\mathrm{Insert\left[\left\{2, 4, 6, 10\right\}, 6, \left[3\right]\right]},\mathrm{evaluate}\right)$
 $\left[{2}{,}{4}{,}{6}{,}{6}{,}{10}\right]$ (2)

 See Also

## Was this information helpful?

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