What does the following Scheme function do define y s lis co
What does the following Scheme function do?
(define (y s lis)
(cond ((null? lis) \'() )
((equal? s (car lis)) lis)
(else (y s (cdr lis)))
))
Solution
Answer:
(define(y s lis) ---> y returns the list which is given and in this list the leading elements are removed up but not including the first occurence of the parameter.
