/usr/share/zenlisp/replace.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 | ; zenlisp example program
; By Nils M Holm, 1998-2007
; See the file LICENSE for conditions of use.
; Replace OLD by NEW in EXPR:
; (replace 'x 'z '(a x (x) (x z))) => '(a z #z #zz)
(define (replace old new form)
(cond ((equal form old) new)
((atom form) form)
(t (cons (replace old new (car form))
(replace old new (cdr form))))))
|