t3x.org / sketchy / library / list-tail.html
SketchyLISP
Reference
  Copyright (C) 2006
Nils M Holm

list-tail

Conformance: R5RS

Purpose: Extract the tail of a list beginning at the n'th member of that list. The first element is at position 0.

Arguments:
X - list
N - position of tail to extract

Implementation:

(define (list-tail x n)
  (cond ((zero? n) x)
    ((null? x) (bottom (list 'list-tail x n)))
    (#t (list-tail (cdr x) (n- n 1)))))

Example:

(list-tail '(a b c d e f) 3) 
=> (d e f)

See also:
caar, append, list-ref.