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: 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



reply via email to

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