dotfiles/.config/racket/racketrc.rktl

6 lines
284 B
Racket

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