util.scm 223 B

1234567891011121314151617
  1. ;; (xcond a
  2. ;; b
  3. ;; c)
  4. ;; (cond a
  5. ;; b
  6. ;; c
  7. ;; (else (error "no match")))
  8. (define-syntax xcond
  9. (syntax-rules ()
  10. ((xcond args ...)
  11. (cond args ... (else (error "no match"))))))