From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: Re: Merging nth, aref, and elt. Date: Sun, 14 Dec 2014 12:23:40 +0100 Message-ID: <87wq5u79nk.fsf@petton.fr> 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 1418570592 23011 80.91.229.3 (14 Dec 2014 15:23:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Dec 2014 15:23:12 +0000 (UTC) Cc: "Stephen J. Turnbull" , David Kastrup , Artur Malabarba , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 14 16:23:05 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 1Y0B0i-0000Zn-6F for ged-emacs-devel@m.gmane.org; Sun, 14 Dec 2014 16:23:04 +0100 Original-Received: from localhost ([::1]:36292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0B0h-00012o-OZ for ged-emacs-devel@m.gmane.org; Sun, 14 Dec 2014 10:23:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y07Ls-0004Bl-Tk for emacs-devel@gnu.org; Sun, 14 Dec 2014 06:28:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y07Ln-0005QE-Fs for emacs-devel@gnu.org; Sun, 14 Dec 2014 06:28:40 -0500 Original-Received: from new2-smtp.messagingengine.com ([66.111.4.224]:42406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y07Ln-0005Q4-CP for emacs-devel@gnu.org; Sun, 14 Dec 2014 06:28:35 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id 7E6CD1582 for ; Sun, 14 Dec 2014 06:28:33 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Sun, 14 Dec 2014 06:28:33 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:references:from:to:cc:subject :date:in-reply-to:message-id:mime-version:content-type; s= smtpout; bh=O6JiuiL689PbaXGChEWpx4OgvDs=; b=kwLoa+wIlaRVfIVySA2q 0uiBGK0cYkzuYJ/sSI1Uunh3Dwtjisve9xktijymfIqFdkAc6IPKxQbOp3Kbi5ii EFEDZhZsktLaF0KgMDV7y5E+MDxUu5aGnmwtsHdyuZJJ7Fiwn452e8+a6P2eDgwv muRSrV1W7RrRlNc5C1ei6Rg= X-Sasl-enc: k5TCq3L0n+5o2vHQYcSNQy24Vz7vx29dyz009+cMUQLE 1418556512 Original-Received: from blueberry (unknown [213.89.134.104]) by mail.messagingengine.com (Postfix) with ESMTPA id 4F26AC0027F; Sun, 14 Dec 2014 06:28:32 -0500 (EST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.224 X-Mailman-Approved-At: Sun, 14 Dec 2014 10:22:47 -0500 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:180088 Archived-At: Stefan Monnier writes: >> Here's an initial diff for hash-tables. Should it use `get' instead of `elt'? > > 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? That would be really nice. subr-x contains some extra hash-tables functions already and I'm wondering how it should be dealt with without implementing some functions twice if we were implementing a map.el library. Should we keep hash-table functions in subr-x and simply alias them in map.el or remove them from subr-x.el? Nico -- Nicolas Petton http://nicolas-petton.fr