blob: d3af299b1effc32284f19ce4440d5dd46c43f939 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
(define-library (print)
(import (scheme base)
(scheme write))
(export print
println
prints
printsln)
(begin
;; Print arguments.
(define (print . args)
(for-each display args))
;; Print arguments, space separated.
(define (prints . args)
(for-each (lambda (s)
(display s)
(display " ")) args))
;; Print arguments and a newline.
(define (println . args)
(apply print args)
(newline))
;; Print arguments, space separated, newline.
(define (printsln . args)
(apply prints args)
(newline))))
|