Please do it in lisp thanks a lot assume l is list of only


Please do it in Lisp, thanks a lot. Assume L is list of only integer numbers (Including zeros, or positive, or negative numbers, or could be an empty list), write a function that finds and returns the rightmost even number from this (if any, otherwise return NIL). Example: for L= (-2, 7, 10, 9, -11, 31, 0, 57, 28, 1) , you should return: 28

My idea is to reverse the list first and then find the leftmost even number. However I couldn't combine them in one function and if I do it seperately the code won't be able to compile.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Please do it in lisp thanks a lot assume l is list of only
Reference No:- TGS02323055

Now Priced at $10 (50% Discount)

Recommended (93%)

Rated (4.5/5)