Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id r9Q2ZcH6016562 for ; Sat, 26 Oct 2013 04:35:39 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx107) with ESMTPS (Nemesis) id 0Lu2uI-1VjQBO30b8-011UPU for ; Sat, 26 Oct 2013 04:35:32 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id r9Q2X00S002679 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 26 Oct 2013 04:33:00 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r9PM149o017762; Sat, 26 Oct 2013 04:33:00 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10483585 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sat, 26 Oct 2013 04:32:59 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r9Q2Wx15003547 for ; Sat, 26 Oct 2013 04:32:59 +0200 Received: from webmail-relay.triumf.ca (webmail-relay.triumf.ca [142.90.107.82]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r9Q2Wn2N017817 for ; Sat, 26 Oct 2013 04:32:52 +0200 Received: from trmail.triumf.ca (trmail.triumf.ca [142.90.100.150]) by webmail-relay.triumf.ca (Postfix) with ESMTP id B8EF01A11E2 for ; Fri, 25 Oct 2013 19:32:48 -0700 (PDT) Received: from 142.90.112.22 (SquirrelMail authenticated user asnd) by trmail.triumf.ca with HTTP; Fri, 25 Oct 2013 19:32:48 -0700 (PDT) References: <52623D5C.1090607@clear.net.nz> <526ACD96.9020304@morningstar2.co.uk> <526ADFC9.9070908@morningstar2.co.uk> <59274.50.67.64.130.1382739473.squirrel@trmail.triumf.ca> User-Agent: SquirrelMail/1.4.8-5.el5.centos.13 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Message-ID: <49834.142.90.112.22.1382754768.squirrel@trmail.triumf.ca> Date: Fri, 25 Oct 2013 19:32:48 -0700 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Donald Arseneau Subject: Re: uppercasing To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:q2Ii7IUrSfo=:rBKlVnWpcgJYeIpBNL7/PG4ELi dzhA08qsPEHL7s3fWDCrjpNuu8nCbRqOjO2y2oVcxVag/GEaOlZ0ICfFxjUxHzF5L6CijqDHc Qw1QSbPQqGvaHDhSHk9kvCdbRc7q9mrzLHN5KxfjFmoBOTmXcYbr7VgsGJ1C4jQ+Mitx+YgpX iXEjLpxq2aL+OWqXq0cUFt8zKBliVRoNvEuLWiR+FKekdB7gESodfCYmV1LuFdDUzOfoSxmM8 5E3xa9E0ELhGZTsS4GDOaGmCzfyx0O8giR+TrjBH/S/LlqVhges/SFv/sK7AjTuC7kxiwSo94 UGMRySOn3kcFC+lWuSWPrDniTHN7nOme2UNmnA6SalmGTWXYTqZHyZ6Vl7RZYm+p7waAX/ljB JKBlUekHHmw6FQsKm8Ac5gAkjxIONxowxLflL68N9DbfoBVZdmiliFEPp+KKHxZNKqJHWm85w rC3ScVFWphAMwZr2Z/HQNpwHjB045fg/vOSTL6h3+THJ8MR6g/nOKush5oeTpqmHhRqqLuajM fflJu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W7MKnOXQT8UeW X-UI-Loop:V01:nnWbEZMvKrw=:urBq8Grc91l0JhFTENXPZpB0FnE5dQK5IQIhI/Twc84= Status: R X-Status: X-Keywords: X-UID: 7307 On Fri, October 25, 2013 3:36 pm, Michiel Helvensteijn wrote: > On Sat, Oct 26, 2013 at 12:28 AM, Michiel Helvensteijn > wrote: > >>> "map" ("mapping") is the usual term. >> >> I think "map" is taken. Though it beats me why "map" isn't actually >> called "foreach", or somesuch. :-) > > Correction, I'm pretty sure I know why the name was chosen: > > http://en.wikipedia.org/wiki/Map_(higher-order_function) > > But the functional programming concept doesn't really fit the expl3 > concept, except for token lists. I'm not sure if the expl3 "map" is a straight "foreach" or a list accumulator. There are several "*map*" definitions in expl3 internals. The one you mean, Does it convert a list of x,y,z to a list of f(x),f(y),f(z)? If so, it is a proper mapping operation. Or does it just spit out f(x), f(y), and f(z) in turn? Then it should just be "foreach". Even in the case of the list accumulator, the function result has to be fully determined by the input argument item for it to be a true map. Functional programmers don't list this requirement because it is the basic assumption underlying functional programming. Conversely, TeX has no good way to enforce that rule should the user want to accumulate sums or similar. I wouldn't worry too much about that, but it could make the "map" name confusing in some circumstances. The character-token mapping implemented by misusing \uppercase or \lowercase should probably be called charmap (or map_char). I can't say if one or more of the other mapping macros should be renamed "foreach". Even if it is a real map, the name "mapeach" will help reduce confusion. Donald Arseneau, TRIUMF CMMS, asnd@triumf.ca