OFFSET
0,3
LINKS
PROG
(Scheme function, destructive implementation of this automorphism acting on S-expressions:) (define (*A123497! s) (cond ((null? s) s) ((and (pair? (car s)) (pair? (cdar s))) (*A074680! s) (let ((old-cddr-s (cddr s))) (set-cdr! (cdr s) (cdadr s)) (set-cdr! (cadr s) old-cddr-s))) ((pair? (car s)) (*A072797! s)) ((pair? (cdr s)) (*A072796! s))) s)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 11 2006
STATUS
approved