8.17.0.3
Pretty-Printing Library for Racket
(require output) | package: output |
This basically provides pp, echo, and dump.
1 Example and usage
#lang racket/base (require output) (define x (+ 11 22)) (echo x) (echo x "x") ;; with title (echo (list x 777)) (dump (list x 777)) ;; (list x 777) ==> (33 777) (pp "hello \nworld") ;; pp quotes string (echo "hello \nworld" "msg") ;; echo unquotes string (echo (pp->string (list x 777))) (dump (pp->string (list x 777))) (echo "abc\r\n" "quote" #:unquote-string? #f) (dump "abc\r\n" #:unquote-string? #f)
2 Reference
Pretty-print x to the port.
Pretty-print x to a string.
print x to a string.
Pretty-print x to the port with an optional title.
Pretty-print x to the port with an auto-generated title.