This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


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

Re: [...]; hash tables


On Thu, 22 Mar 2001, Doug Orleans wrote:

> Hi, I just joined the kawa list.  I have a bug report, a suggestions,
> and a question.
>
> ...
> 
> Question: has anyone written a Scheme interface to the Java Hashtable
> (or HashMap) class?  I don't like the SLIB hashtable implementation
> for various reasons (e.g. doesn't use an opaque type, doesn't allow
> for a user-defined hash function) and rather than writing one from
> scratch I figured it'd make sense to just piggy-back onto Java's.  But
> no sense in doing the work if someone else has already done it.  (This
> would be another candidate for a contrib page.)
>
Yes, I have. It's not very exciting: defines put!(Hashtable,value),
lookup(Hashtable,value), map->alist(Hashtable), alist->map(list),
and for-each-in-map(proc,Hashtable). But I can post it if you think
worthwhile.

> Thanks,
> --Doug Orleans
> Northeastern University
> dougo@ccs.neu.edu
> 
Jocelyn Paine


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