I am trying to create a procedure to delete n number of elements from a list starting at an index i, so far this is what I got:
(define (remove L i n)
(cond ((null? L)
'())
((and (= i 0) (= n 0))
L)
(else (cons (car L) (remove (cdr L) (- i 1) (+ n 1))))
I might be missing a condition in there but I am kinding of confused.