guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add procedures to convert alists into hash tables


From: Ludovic Courtès
Subject: Re: [PATCH] Add procedures to convert alists into hash tables
Date: Mon, 18 Nov 2013 21:32:21 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

David Thompson <address@hidden> skribis:

> From 03f604cc3dfffb816cfe66a355e36ede337749f1 Mon Sep 17 00:00:00 2001
> From: David Thompson <address@hidden>
> Date: Sat, 19 Oct 2013 22:43:37 -0400
> Subject: [PATCH] Add procedures to convert alists into hash tables.
>
> * module/ice-9/hash-table.scm: New module.
>
> * test-suite/tests/hash.test ("alist conversion"): Add tests.
>
> * doc/ref/api-compound.texi (Hash Table Reference): Add docs.

Agreed with Mark’s comment, but otherwise looks good to me.

> +(define-syntax-rule (define-alist-converter name hash-set-proc)
> +  (define (name alist)

[...]

> +(define (alist->hashx-table hash assoc alist)
> +  "Convert @var{alist} into a hash table with custom @var{hash} and
> address@hidden procedures."

Currently Texinfo markup in docstrings is left uninterpreted so it
can/should be avoided (it may change in the future, but the future’s not
now ;-)).

Thanks!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]