Code: Select all
(define (<=> x y body1 body2 body3)
(if (list? x)(setq x (length x)))
(if (list? y)(setq y (length y)))
(eval (if (< x y) body1
(= x y) body2
body3
)))
Code: Select all
(define (<=> x y body1 body2 body3)
(if (list? x)(setq x (length x)))
(if (list? y)(setq y (length y)))
(eval (if (< x y) body1
(= x y) body2
body3
)))
It is only me who remembers FORTRAN 66 and arithmetic IF? ;-)Jeremy Dunn wrote:This is a conditional with three bodies.