Implement the enumerate procedure, which takes in a list of values and returns a list of two-element lists, where the first element is the index of the value, and the second element is the value itself.
;; Returns a list of two-element lists(define (enumerate s); BEGIN PROBLEM 17 (define (make-enumerate lst index) (if (null? lst)nil (cons (list index (car lst)) (make-enumerate (cdr lst) (+ index 1)))) )(make-enumerate s 0) ); END PROBLEM 17
Problem 18
Implement the zip procedure, which takes in a list of two element pairs, and returns a new list where the first element is a list containing the first element of each pair and the second element contains the second element of each pair.