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: map.el and naming Date: Mon, 02 Mar 2015 14:59:44 +0100 Message-ID: <87fv9n1ovj.fsf@petton.fr> References: <87lhji1aw8.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1425304827 23433 80.91.229.3 (2 Mar 2015 14:00:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Mar 2015 14:00:27 +0000 (UTC) Cc: Nicolas Petton , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 02 15:00:16 2015 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 1YSQtM-0007cM-9d for ged-emacs-devel@m.gmane.org; Mon, 02 Mar 2015 15:00:16 +0100 Original-Received: from localhost ([::1]:57193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSQtG-0007vs-Q6 for ged-emacs-devel@m.gmane.org; Mon, 02 Mar 2015 09:00:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSQsx-0007vh-Fs for emacs-devel@gnu.org; Mon, 02 Mar 2015 08:59:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSQst-000204-B0 for emacs-devel@gnu.org; Mon, 02 Mar 2015 08:59:51 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:49645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSQst-0001zz-7P for emacs-devel@gnu.org; Mon, 02 Mar 2015 08:59:47 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 68DAA20865 for ; Mon, 2 Mar 2015 08:59:45 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Mon, 02 Mar 2015 08:59:46 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:references:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-type; s= smtpout; bh=P77sRGFJKcz/OsX+WbAfZRsBxiE=; b=bNupedBTiTbbHROVPzXo FISA5lzWSdVV+Ppq/9UTe1CD7Bmhx+xbs4+K3RAK9EmG/uHfRKec+n7MlU6rXwHN DMyal21CZHy0HrYGWe+IwTIx8yl6z5kHZuX1kl+gudFgg90Yx3FWyKAdmxS6fcTg 4uxENUbInIZKg1yXF6dpucg= X-Sasl-enc: UVuVoEIR4orUMAvaiPDjBL+l9w5e/UocYGSkRSfCDA+U 1425304786 Original-Received: from blueberry (unknown [95.155.228.124]) by mail.messagingengine.com (Postfix) with ESMTPA id 9C7116801B1; Mon, 2 Mar 2015 08:59:45 -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.25 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:183568 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Stefan Monnier writes: >> map. I thought about calling `map-map' the function that would map over >> the keys and values of map, and `map-map-keys' the function that would >> map over the keys of a map, etc. > > Indeed, these names kind of suck. For `map-map-keys', you could use ` > map-keys', tho this name could also be used for a function which just > returns the list of keys. For `map-map' you could use `map-apply' or > `map-kv' (for "keys and values"). I used `map-keys' to return the list of keys indeed. I don't really like `map-kv', seems cryptic to me. `map-apply' could work, but it's still not as good as `seq-map' for example. Maybe naming the library map.el isn't a good fit afterall, as map also refers to mapping. Would anyone have another idea? Nico =2D-=20 Nicolas Petton http://nicolas-petton.fr --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJU9GzQAAoJECM1h6R8IHkQQGQIALzPzSUYnmo3nggu/jxhiUie z5s/ENUO+5ialYTThv47LwSlcl2i3ScCI7c1G0OYSlbwX/BKgxJbqPNjZov6lvy/ 7hf10ANrNaSxua7Ol1wnI6btUWwndZUnzh1Ks2nuHKWhnrb1zgLNN7yFTtssRKK0 uBg9q2Y3X4/svOaUXVU5G2Xwk1YP0FGcXp632hbdrct1LRcP8J2DQo1SMJFOLopF 1/q/UHn2OJYdxKDDLA//xHAv0ATuTy13YrsNzEH/U4USIbtAQwEoa0H0i6DhewXV jRfrYBI9WZlujXXrhf/NdDKuYc7dXv6zgF1noWiY5TvK6efr/ajYdp/Tvs9OXN8= =u6aG -----END PGP SIGNATURE----- --=-=-=--