[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pretty Printing values from a hashmap

From: adriano
Subject: Re: Pretty Printing values from a hashmap
Date: Thu, 21 Jul 2022 13:28:43 +0200

Il giorno gio, 21/07/2022 alle 12.13 +0300, Munyoki Kilyungi ha
> Hi!  Say I have a hashmap that has nested hashmaps
> that I want to inspect.  Is there a way to just
> printing it out on my display in a
> straight-forward way without having to loop inside
> the key-value pairs?  Printing a hashmap outputs
> something like this:
> --8<---------------cut here---------------start------------->8---
> #<hash-table 7f56164e9340 2/31>
> --8<---------------cut here---------------end--------------->8---

The Guile pretty printer doesn't support hashmaps

I see 2 options

1) you convert your hashmap into an alist and print that

2) you extend the pretty printer to support hashmaps too and send a

as for the 2nd option, I was suggested to do so myself, not so long ago

but I couldn't bring myself to do that

reply via email to

[Prev in Thread] Current Thread [Next in Thread]