This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: Hashes in Guile
- To: James Dean Palmer <james@tiger-marmalade.com>
- Subject: Re: Hashes in Guile
- From: Greg Harvey <Greg.Harvey@thezone.net>
- Date: 10 Jun 1999 15:54:57 -0230
- Cc: guile@cygnus.com
- References: <lzbteootf8.fsf@viz.tiger-marmalade.com>
James Dean Palmer <james@tiger-marmalade.com> writes:
> Is there any documentation or examples someone could point me to on
> how to build and use hashes in Guile?
>
> I would like to set up a hash where the keys are strings and the
> values are arbitrary scheme objects. Thanks in advance,
Well, here's a quick example:
guile> (define htest (make-hash-table 7))
guile> (hash-set! htest "Foo" (cons 'a 'b))
(a . b)
guile> (hash-ref htest "Foo")
(a . b)
It should be pretty straightforward to see how to use 'em.
--
Greg