utils.scm 339 B

1234567891011121314
  1. (define-module (utils))
  2. (define-public debug-print
  3. (lambda* (#:key (output-port (current-output-port)) . msgs)
  4. (let loop ([remaining msgs])
  5. (cond
  6. [(null? remaining) (display "")]
  7. [else
  8. (display
  9. (simple-format #f "~a\n" (car remaining))
  10. output-port)
  11. (loop (cdr remaining))]))))