Re: hash-table-delete! and return value Peter Lane (21 May 2017 09:42 UTC)
Re: hash-table-delete! and return value John Cowan (21 May 2017 15:39 UTC)
Re: hash-table-delete! and return value Arthur A. Gleckler (26 Sep 2018 15:40 UTC)

Re: hash-table-delete! and return value Peter Lane 21 May 2017 09:42 UTC

On 20/05/17 23:07, John Cowan wrote:
> Please do.
>
> On Sat, May 20, 2017 at 12:43 PM, Peter Lane <xxxxxx@peterlane.info
> <mailto:xxxxxx@peterlane.info>> wrote:

>     I can create a pull request for the reference implementation, to
>     stay consistent with the specification.

I have created a pull request with a modified hash-table-delete! to
return the count of removed keys.  This includes some tests to verify
behaviour.

To get this to run in Larceny I also changed the test program to import
(srfi 132) instead of (r6rs sorting).  This is in the second commit of
the pull request.

--
Peter Lane
http://peterlane.info/scheme.html