This is the mail archive of the guile@cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Hashes in Guile


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]