emacs-devel
[Top][All Lists]
Advanced

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

Re: new function proposal alist-to-hash


From: Andrea Corallo
Subject: Re: new function proposal alist-to-hash
Date: Thu, 03 Oct 2019 22:07:24 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (berkeley-unix)

Stefan Monnier <address@hidden> writes:

>> I'd like to propose a new simple function called alist-to-hash to make
>> hash-tables from a-lists.
>
> I think `map-into` does that:
>
>     (map-into '((a . 1) (b . 2)) 'hash-table)
>     
>
> -- Stefan

Cool good to know!
The only thing is that this is not recursive.
I think having it recursive make the use quite lighter in cases with
nesting.

Bests
  Andrea

-- 
address@hidden



reply via email to

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