Marius Vollmer <[EMAIL PROTECTED]> writes:

> Mikael Djurfeldt <[EMAIL PROTECTED]> writes:
> 
> > Keisuke Nishida <[EMAIL PROTECTED]> writes:
> > 
> > > The following code makes an error.  Is this a feature or a bug?
> > > 
> > > guile> (hash-fold acons () (make-vector 5))
> > 
> > It's a bug in the above expression.  (make-vector 5) makes a vector
> > with #<unspecified> as elements.  This is not a hash table.
> > 
> > Instead, try
> > 
> >   (hash-fold acons '() (make-vector 5 '()))
> 
> Why not use `make-hash-vector'?

or, indeed, `make-hash-table'?

I really don't think that the fact that Guile hash tables are just
vectors of lists needs to be exposed that much.

-- 
Make sure your code does nothing gracefully.

Reply via email to