Question: Please complete in scheme language. Compile on emacs/DrRacket Exercise 2.15: list-of-first-items Define a procedure list-of-first-items that takes as its argument a list composed of nonempty
Please complete in scheme language. Compile on emacs/DrRacket

Exercise 2.15: list-of-first-items Define a procedure list-of-first-items that takes as its argument a list composed of nonempty lists of items. Its value is a list composed of the first top-level item in each of the sublists. Test your procedure on: (list-of-first-itens '((a) (b c d) (e f))) = (a bo) (list-of-first-items '((1 2 3) (4 5 6))) = (1 4) (list-of-first-items '((one))) = (one) (list-of-first-items '()) =() Exercise 2.15: list-of-first-items Define a procedure list-of-first-items that takes as its argument a list composed of nonempty lists of items. Its value is a list composed of the first top-level item in each of the sublists. Test your procedure on: (list-of-first-itens '((a) (b c d) (e f))) = (a bo) (list-of-first-items '((1 2 3) (4 5 6))) = (1 4) (list-of-first-items '((one))) = (one) (list-of-first-items '()) =()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
