Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id r9QD5FrL019921 for ; Sat, 26 Oct 2013 15:05:16 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx104) with ESMTPS (Nemesis) id 0M6gHI-1Vx47N1a5M-00wRjV for ; Sat, 26 Oct 2013 15:05:10 +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 r9QD1ISR013758 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 26 Oct 2013 15:01:18 +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 r9PM14FW017762; Sat, 26 Oct 2013 15:01:17 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10484553 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sat, 26 Oct 2013 15:01:17 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r9QD1HQt013742 for ; Sat, 26 Oct 2013 15:01:17 +0200 Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id r9QD18of013705 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Sat, 26 Oct 2013 15:01:12 +0200 Received: by mail-ob0-f182.google.com with SMTP id wn1so2025528obc.27 for ; Sat, 26 Oct 2013 06:01:07 -0700 (PDT) X-Received: by 10.60.174.75 with SMTP id bq11mr7104562oec.17.1382792467565; Sat, 26 Oct 2013 06:01:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.171.5 with HTTP; Sat, 26 Oct 2013 06:00:47 -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> <49834.142.90.112.22.1382754768.squirrel@trmail.triumf.ca> Content-Type: text/plain; charset=ISO-8859-1 Message-ID: Date: Sat, 26 Oct 2013 15:00:47 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Michiel Helvensteijn Subject: Re: uppercasing To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <49834.142.90.112.22.1382754768.squirrel@trmail.triumf.ca> 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:QN0Mx2x1dbE=:AZTZylHjCsiXrTZCVFZFF0IrUI OQlwtjsobW2cjV96QrytYU0Q2IlMDqHXx5QWrDcx5QjbEqkGrQ4C8n9tbBQDjemEQlZSXyR9+ W88OMY2cK9Mw7jWuu+GHLqrC35Dbj12dCHAGpiADoNpeqOkpE+2am2kZ4+ig0ZwRlNV9oWIqa YKnOuql9S7aTyVX/DosQ85TdFLmE0CAja3O34h8xTmCJp0d0nnMIUQw01qo6EF0RtIoRPfRIs 8GV5hs3e74quLMo6WqJTJsDiVqXEa4w9tk4aqPUk2VaCIsRIJllJczExok7lwqd6xgpFDWuJw L+bvL19r+uWjjCG1XVIMNWpWrlZICK9yU20QUN8xrdXOrzw0v/ValkIhmIh5parETo+PDXcDC AI3PYEO5PYKszCbTLzvCoxUFroZceKQmIrlqzPMQ3N6Unxxflh6dCPrzPovLHEQ/VnaDp/Wtf +DqifhLCDv8MysY3mcEu0C3W+ca4TO+ZYZ2MwZbXAPHloJkxZJvqgIPCyZ/AHmhgG4hWCLZGZ V6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aNdSZHcyB88=:s4jsAoLCvrSV6Z/U6fvoGhn6iaDCmw/3sMNYIib9QuY= Status: R X-Status: X-Keywords: X-UID: 7308 On Sat, Oct 26, 2013 at 4:32 AM, Donald Arseneau wrote: >> 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". Exactly. The expl3 map functions visit each element of a data-structure in turn, apply the provided function, then leave the result in the input stream. That's why I was thinking 'foreach' would have been a better name. And indeed, the provided function doesn't have to be pure or side-effect free. An expl3 mapping function is really a looping construct. -- www.mhelvens.net