4
answers
0
watching
316
views
3 Dec 2018

6. [8 marksl Consider the Scheme function drop-all first which consumes ist, a list of non-empty strings, and produces a new list containing the same strings as 1st, except that the first character from each is removed. For example, (drop-all-First (cons "cal" (cons "dog" (cons "sheep" empty)))) produces (cons "at" (cons "og" (cons "heep" empty))). a) 12 marks Write the contract for drop-all-first (the function header is given below) ;; drop-all-first: b) [6 marks] Complete the body of drop-all-first. (decine (drop-all-firs:)

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Reid Wolff
Reid WolffLv2
6 Dec 2018
Already have an account? Log in
Start filling in the gaps now
Log in