Given a list, how would I select a new list, containing a slice of the original list (Given offset and number of elements) ?
Good suggestions so far. I
Try something like this:
(define (slice l offset length) (if (null? l) l (if (> offset 0) (slice (cdr l) (- offset 1) length) (if (> length 0) (cons (car l) (slice (cdr l) 0 (- length 1))) '()))))