Question: Write the following LISP function: (front-or-back l ) a) Return the first item of a list if it contains an even number of elements b)
Write the following LISP function: (front-or-back l)
a) Return the first item of a list if it contains an even number of elements
b) Return the last item of a list if it contains an odd number of elements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
