OFFSET
0,3
LINKS
PROG
(Scheme) ;; Destructive implementation of this automorphism, which acts on S-expressions; i.e., list-structures:
(define (!APPLY-AFTER-FIRST-NIL f!) (letrec ((g! (lambda (s) (cond ((pair? s) (if (pair? (car s)) (g! (cdr s)) (f! (cdr s))))) s))) g!))
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 05 2007
STATUS
approved
