From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: new function proposal alist-to-hash Date: Thu, 03 Oct 2019 17:56:16 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="124485"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 03 23:57:08 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iG95v-000WIl-5e for ged-emacs-devel@m.gmane.org; Thu, 03 Oct 2019 23:57:07 +0200 Original-Received: from localhost ([::1]:40408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iG95u-0001JW-1F for ged-emacs-devel@m.gmane.org; Thu, 03 Oct 2019 17:57:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36979) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iG95C-0000yV-3v for emacs-devel@gnu.org; Thu, 03 Oct 2019 17:56:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iG95A-0004wo-I3 for emacs-devel@gnu.org; Thu, 03 Oct 2019 17:56:21 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:17412) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iG95A-0004vp-Be for emacs-devel@gnu.org; Thu, 03 Oct 2019 17:56:20 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 308E21010E5; Thu, 3 Oct 2019 17:56:19 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id DFCDA100F1B; Thu, 3 Oct 2019 17:56:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1570139777; bh=ttDpgjgI6WrV2he8rN37VfYrqVMkHt5h+csCMK9Xk7k=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=QRXELvO4XEHDp6ffdLjidgNDXMAaqY6uK0KFwy5Dx/+FCULxbETNccFm5cqDwRqxN VVZw6hpyvl5bMfQuZTtuP8TwzQTm1/aIhQPuvQKQFsTohdRK4627CB0knEY61tr7Eo Vd3ur7TglR/kmOYOBcAp62MImnSsj0WFOYGu+vCyNA8UbelGbI4zgpOJme5A4IMcN+ IYELI8gxexiEK+NsfOCYMn8Zo4IW3L1wvBz2G2F+/BRkgt2L69+t92V+ttAdh+lmlv erjFmxAx3O/Ngl8KdA/tOdPE7uwFLsQWud3k3VcVftDyhYbyFJClnPK87XKgN+7gj6 sUnY4IzALux9Q== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id CA835120C50; Thu, 3 Oct 2019 17:56:17 -0400 (EDT) In-Reply-To: (Andrea Corallo's message of "Thu, 03 Oct 2019 21:25:36 +0000") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240534 Archived-At: > 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