Question: Question 3 ) [ 5 points ] Below, a procedure named get - numbers - only is given, which has a single parameter named

Question 3)[5 points] Below, a procedure named "get-numbers-only" 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 "1st" 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 fill-in the blanks to implement this procedure.
1]>(define get-numbers-only (lambda (lst)
(if (..... lst)
'()
(if (number?(car lst))
(......(car lst)(get-numbers-only (.....lst)))
. lst
 Question 3)[5 points] Below, a procedure named "get-numbers-only" is given, which

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!