Question: PROGRAM IN SCHEME Create a procedure (after L n) that returns a list that contains all BUT the first n items of L (after '(a

PROGRAM IN SCHEME

Create a procedure (after L n) that returns a list that contains all BUT the first n items of L

 (after '(a b c d e f g h) 3)  (d e f g h) (after '(a b c d e f g h) 0)  (a b c d e f g h) 

(b) [4 marks] Create a procedure (splice L i A) that splices the list A into the list L at index i

 (splice '(1 2 3 4 5) 2 '(a b c))  (1 2 a b c 3 4 5) (splice '(1 2 3 4 5) 0 '(a b c))  (a b c 1 2 3 4 5) 

(c) [2 marks] Create a procedure (splice2 L i n A) that splices the list A into the list L at index i, and removes n items from the original list L starting at i

 (splice2 '(1 2 3 4 5) 2 1 '(a b c))  (1 2 a b c 4 5) (splice2 '(1 2 3 4 5) 2 0 '(a b c))  (1 2 a b c 3 4 5) (splice2 '(1 2 3 4 5) 3 4 '(a b c))  (1 2 3 a b c) 

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!