dotfiles/.config/racket/racketrc.rktl

7 lines
281 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 (rational? x) (not (integer? x))) (printf "~a = ~a" x (exact->inexact x))]
[else (pretty-print x)])))