/usr/share/zenlisp/tailp.l is in zenlisp 2013.11.22-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ; zenlisp example program
; By Nils M Holm, 1998-2007
; See the file LICENSE for conditions of use.
; Check if an expression X is equal to the tail
; of an expression Y:
; (tailp '(d e f) '(a b c d e f)) => 't
(require 'headp)
(define (tailp x y)
(headp (reverse x) (reverse y)))
; Without using HEADP:
; (define (tailp x y)
; (cond ((null y) (null x))
; (t (or (equal x y)
; (tailp x (cdr y))))))
|