Delete Function Example

Details

Action

A MathScript Function that deletes an element from a list.

Enter the following commands on a command line to see the behavior of the delete command.

make l1 list(1,3,5,7,3,4)

make newlist delete(3,l1)

returns the list

(1,5,7,4)