From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Add procedures to convert alists into hash tables Date: Mon, 18 Nov 2013 21:32:21 +0100 Message-ID: <8738mtmox6.fsf@gnu.org> References: <5263E55A.6040307@worcester.edu> <87txg0p805.fsf@gnu.org> <87iow6pqox.fsf@netris.org> <87mwlhlmgr.fsf@gnu.org> <5289726B.6030302@worcester.edu> <52897E7B.6000602@worcester.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1384806757 16149 80.91.229.3 (18 Nov 2013 20:32:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2013 20:32:37 +0000 (UTC) Cc: Mark H Weaver , guile-devel To: David Thompson Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Nov 18 21:32:42 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ViVUw-00051G-Ib for guile-devel@m.gmane.org; Mon, 18 Nov 2013 21:32:42 +0100 Original-Received: from localhost ([::1]:45772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViVUw-00034e-11 for guile-devel@m.gmane.org; Mon, 18 Nov 2013 15:32:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViVUj-00034X-W2 for guile-devel@gnu.org; Mon, 18 Nov 2013 15:32:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViVUd-0006fk-Tv for guile-devel@gnu.org; Mon, 18 Nov 2013 15:32:29 -0500 Original-Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:28106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViVUd-0006fY-Nr for guile-devel@gnu.org; Mon, 18 Nov 2013 15:32:23 -0500 X-IronPort-AV: E=Sophos;i="4.93,725,1378850400"; d="scan'208";a="43581870" Original-Received: from reverse-83.fdn.fr (HELO pluto) ([80.67.176.83]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 18 Nov 2013 21:32:22 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 Brumaire an 222 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <52897E7B.6000602@worcester.edu> (David Thompson's message of "Sun, 17 Nov 2013 21:42:03 -0500") User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.134.164.83 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16754 Archived-At: David Thompson skribis: > From 03f604cc3dfffb816cfe66a355e36ede337749f1 Mon Sep 17 00:00:00 2001 > From: David Thompson > 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=E2=80=99s 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 > +@var{assoc} procedures." Currently Texinfo markup in docstrings is left uninterpreted so it can/should be avoided (it may change in the future, but the future=E2=80=99= s not now ;-)). Thanks! Ludo=E2=80=99.