Question: Write a file named p3.lisp that contains a Common LISP function named lins, which accepts a list of values a0 through an, and returns a

Write a file named p3.lisp that contains a Common LISP function named lins, which accepts a list of values a0 through an, and returns a list of the values in the original list in ascending order. The sorting algorithm must be an insertion sort. Note that there may be from 0 (zero) to an arbitrarily large number of values in the list, that any value in the list may appear any number of times up to the number of entries in the list. You must return a list containing the real numbers list as a sorted list The only parameter for the function is the list to be sorted. Again, there may be an empty list passed, so you need to handle an empty list correctly. You must document your code.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!