dotfiles/.config/racket/racketrc.rktl

7 lines
296 B
Racket
Raw Normal View History

2023-09-30 15:37:13 +02:00
(current-print (λ (x)
(cond
[(void? x) #f]
;; Also show fractions as decimals.
[(and (number? x) (exact? x) (not (exact-integer? x))) (printf "~a = ~a" x (exact->inexact x))]
2023-09-30 15:37:13 +02:00
[else (pretty-print x)])))