mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-15 22:43:02 +01:00
6 lines
296 B
Racket
6 lines
296 B
Racket
(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))]
|
|
[else (pretty-print x)])))
|