You could write your own printer, that recognizes lists specially and prints them how you want, and set the `current-print` parameter.
Or you could use an opaque struct type and wrap your lists with those structs. Vincent On Mon, 11 Apr 2016 10:35:55 -0500, Héctor Mc wrote: > > Hello guys, > > There any way to hide the contents of a list as does the structure? > > (define lst (list "abc" 123 (+ 12 32))) > lst ; --> '("abc" 123 44) something like #<list> > > (define-struct user (nom ape)) > (define u (make-user "nom" "ape")) > user ; --> #<procedure:user> > u ; --> #<user> > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.