dotfiles/.config/racket/racketrc.rktl
2023-09-30 15:37:13 +02:00

7 lines
281 B
Racket

(current-print (λ (x)
(cond
[(void? x) #f]
;; Also show fractions as decimals.
[(and (rational? x) (not (integer? x))) (printf "~a = ~a" x (exact->inexact x))]
[else (pretty-print x)])))