Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; python-style equivalence chains
- (define (python=? left . args)
- (or (null? args)
- (let ((oper (car args))
- (right (cadr args)))
- (and (oper left right)
- (apply python=? (cdr args))))))
- (python=? 4 < 5 = 5 <= 7 > 2) ;; => #t
- (python=? 'panic equal? 'Panic eqv? 'PANIC) ;; => #t
Advertisement
Add Comment
Please, Sign In to add comment