~Saranya
I learnt to create list, append,add and function notation
Make list using single quote .
Example:
‘(10 20 30 40) => (10 20 30 40)
Adding an element in the front of the list using cons:
Example:
name='(1 2 3) => (1 2 3)
cons(7 name) =>(7 1 2 3)
Merging two list using append:
Example:
firstList=(‘1 2 3) =>(1 2 3)
secondList='(4 5 6) =>(4 5 6)
total=append(firstList secondList) =>(1 2 3 4 5 6)