From: Ian Price <ianprice90@googlemail.com>
To: "Sjoerd van Leent Privé" <svanleent@gmail.com>
Cc: guile-devel@gnu.org
Subject: Re: Immutable rnrs hashtable
Date: Mon, 26 Nov 2012 10:28:39 +0000 [thread overview]
Message-ID: <87ip8sbqug.fsf@Kagami.home> (raw)
In-Reply-To: <50B33A09.7090303@gmail.com> ("Sjoerd van Leent Privé"'s message of "Mon, 26 Nov 2012 10:44:41 +0100")
Sjoerd van Leent Privé <svanleent@gmail.com> writes:
> Btw, isn't their a hashtable which is more pure in it's
> implementation? The RNRS and SRFI-69 versions are having quite some
> side-effects. I would have expected a method like "hashtable-add"
> which copies an existing hashtable, adds values and returns a new
> hashtable. I know, I prefer pure functional implementations...
You could look up vhashes in the manual. Alternatively, if your data
has an ordering you can use (pfds bbtrees) from my pfds collection[0]
0. https://github.com/ijp/pfds or guild install pfds
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
next prev parent reply other threads:[~2012-11-26 10:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-25 23:00 Immutable rnrs hashtable Sjoerd van Leent Privé
2012-11-26 1:07 ` Ian Price
2012-11-26 1:25 ` Ian Price
2012-11-26 9:44 ` Sjoerd van Leent Privé
2012-11-26 10:28 ` Ian Price [this message]
2012-11-26 14:18 ` Sjoerd van Leent Privé
2012-11-26 16:34 ` Ludovic Courtès
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=87ip8sbqug.fsf@Kagami.home \
--to=ianprice90@googlemail.com \
--cc=guile-devel@gnu.org \
--cc=svanleent@gmail.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).