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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started