From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Merging nth, aref, and elt. Date: Sat, 13 Dec 2014 22:57:29 -0500 Message-ID: References: <87oast997c.fsf@fencepost.gnu.org> <87bnor3eyt.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418529485 14530 80.91.229.3 (14 Dec 2014 03:58:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Dec 2014 03:58:05 +0000 (UTC) Cc: "Stephen J. Turnbull" , David Kastrup , emacs-devel To: Artur Malabarba Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 14 04:57:58 2014 Return-path: Envelope-to: ged-emacs-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 1Y00Jh-0006pX-3j for ged-emacs-devel@m.gmane.org; Sun, 14 Dec 2014 04:57:57 +0100 Original-Received: from localhost ([::1]:34924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y00Jg-0006L0-JK for ged-emacs-devel@m.gmane.org; Sat, 13 Dec 2014 22:57:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y00JW-0006Kf-D8 for emacs-devel@gnu.org; Sat, 13 Dec 2014 22:57:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y00JO-0007Rr-Tg for emacs-devel@gnu.org; Sat, 13 Dec 2014 22:57:46 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:47333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y00JH-0007Lh-1S; Sat, 13 Dec 2014 22:57:31 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AskIAOwQflTO+ILA/2dsb2JhbABbgweDYMp3BAICgSQXAQEBAQEBfIQDAQEDAVYjBQsLDiYSFBgNJIhKCdZZAQEBBwEBAQEekG8HhEgFiwGkLoF4ggQegXchgncBAQE X-IPAS-Result: AskIAOwQflTO+ILA/2dsb2JhbABbgweDYMp3BAICgSQXAQEBAQEBfIQDAQEDAVYjBQsLDiYSFBgNJIhKCdZZAQEBBwEBAQEekG8HhEgFiwGkLoF4ggQegXchgncBAQE X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="100971813" Original-Received: from 206-248-130-192.dsl.teksavvy.com (HELO ceviche.home) ([206.248.130.192]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Dec 2014 22:57:29 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 8CAE6660D3; Sat, 13 Dec 2014 22:57:29 -0500 (EST) In-Reply-To: (Artur Malabarba's message of "Sat, 13 Dec 2014 04:09:51 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:180049 Archived-At: > Here's an initial diff for hash-tables. Should it use `get' instead of `elt'? Hmm... I think we should distinguish the "get element" of sequences and the "get element" of tables. The upcoming seq.el provides operations on sequences, such as seq-elt and that doesn't apply to hash-tables because I don't think we should treat them as sequences. So, yes, support for hash-tables would fall into the `get' extension, or whatever name we end up choosing. I think we should probably come up with a library akin to seq.el but for mappings (also known as "functions" in set-theory). It could be called map.el, maybe, and the operation could be map-elt? Stefan