Question: Question 3 ) [ 5 points ] Below, a procedure named get - numbers - only is given, which has a single parameter named
Question points Below, a procedure named "getnumbersonly" is given, which has a single
parameter named lst Assume that lst is a list no need to check if it is really a list or not The
procedure produces the same list as st where all the items which are not numbers are dropped, but
the elements of lst which are numbers are kept in the same order as given in lst You can also
see some example use of this procedure below. Note that if an element of lst is sublist, this sublist
is also dropped. Please fillin the blanks to implement this procedure.
define getnumbersonly lambda lst
if lst
if numbercar lst
car lstgetnumbersonly lst
lst
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
