Adjoin Function Example

Details

Action

A MathScript Function that adds an object to a list.

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

make list1 list(1,2,3,4,5)

make newlist adjoin(8,list1)

returns the list (8,1,2,3,4,5 )