unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: adriano <randomlooser@riseup.net>
To: Munyoki Kilyungi <me@bonfacemunyoki.com>, guile-user@gnu.org
Subject: Re: Pretty Printing values from a hashmap
Date: Thu, 21 Jul 2022 13:28:43 +0200	[thread overview]
Message-ID: <482add0a4e3068b351c48e0e8875bf28741f1d92.camel@riseup.net> (raw)
In-Reply-To: <86sfmuvne7.fsf@bonfacemunyoki.com>

Il giorno gio, 21/07/2022 alle 12.13 +0300, Munyoki Kilyungi ha
scritto:
> 
> 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
patch

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



      parent reply	other threads:[~2022-07-21 11:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-21  9:13 Pretty Printing values from a hashmap Munyoki Kilyungi
2022-07-21 10:14 ` Munyoki Kilyungi
2022-07-21 11:28 ` adriano [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=482add0a4e3068b351c48e0e8875bf28741f1d92.camel@riseup.net \
    --to=randomlooser@riseup.net \
    --cc=guile-user@gnu.org \
    --cc=me@bonfacemunyoki.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).