[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add procedures to convert alists into hash tables
From: |
Mark H Weaver |
Subject: |
Re: [PATCH] Add procedures to convert alists into hash tables |
Date: |
Sun, 17 Nov 2013 22:22:32 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Hi David,
David Thompson <address@hidden> writes:
> address@hidden {Scheme Procedure} alist->hash-table alist
> address@hidden {Scheme Procedure} alist->hashq-table alist
> address@hidden {Scheme Procedure} alist->hashv-table alist
> address@hidden {Scheme Procedure} alist->hashx-table hash assoc alist
> +Convert @var{alist} into a hash table. When keys are repeated in
> address@hidden, the leftmost association takes precedence.
> +
> address@hidden
> +(use-modules (ice-9 hash-table))
> +(alist->hash-table '((foo . 1) (bar . 2)))
> address@hidden example
> +
> +When converting to an extended hash table, custom @var{hash} and
> address@hidden procedures must be provided.
> +
> address@hidden
> +(alist->hash-table hash assoc '((foo . 1) (bar . 2)))
This should be 'alist->hashx-table'.
Other than that, the patch looks good to me!
Mark
- Re: [PATCH] Add procedures to convert alists into hash tables, Thien-Thi Nguyen, 2013/11/03
- Re: [PATCH] Add procedures to convert alists into hash tables, Mark H Weaver, 2013/11/05
- Re: [PATCH] Add procedures to convert alists into hash tables, Ludovic Courtès, 2013/11/06
- Re: [PATCH] Add procedures to convert alists into hash tables, Thompson, David, 2013/11/06
- Re: [PATCH] Add procedures to convert alists into hash tables, David Thompson, 2013/11/17
- Re: [PATCH] Add procedures to convert alists into hash tables, David Thompson, 2013/11/17
- Re: [PATCH] Add procedures to convert alists into hash tables,
Mark H Weaver <=
- Re: [PATCH] Add procedures to convert alists into hash tables, Ludovic Courtès, 2013/11/18
- Re: [PATCH] Add procedures to convert alists into hash tables, David Thompson, 2013/11/18
- Re: [PATCH] Add procedures to convert alists into hash tables, Mark H Weaver, 2013/11/18
- Re: [PATCH] Add procedures to convert alists into hash tables, Thompson, David, 2013/11/19