<br><br><div class="gmail_quote">On Tue, Sep 11, 2012 at 4:49 AM, Bryce <span dir="ltr"><<a href="mailto:bryceverdier@gmail.com" target="_blank">bryceverdier@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In the same vein as the "who discovered the fold operation" thread from last week, I would like to know the same answer for "map".<br>
<br>
I tried looking it up on wikipedia, but the best line I could find from it is this:<br>
"The map function originated in functional programming languages but is today supported (or may be defined) in many procedural, object oriented, and multi-paradigm languages as well: In C++'s Standard Template Library, it is called transform, in C# (3.0)'s LINQ library, it is provided as an extension method called Select."<br>
<br>
Does anyone have an answer or idea on where I could look?<br>
<br>
Thanks in advance and sorry if it it's a redundant question.<br>
<br>
Bryce<br>
</blockquote></div><br>Among programming languages I think its (again) APL. In the case of map its much more pervasive and implicit than with fold. (In haskell terminology we would say both map and zipwith)<br><a href="http://www.jsoftware.com/papers/APL1.htm#s.5">http://www.jsoftware.com/papers/APL1.htm#s.5</a><br>
Heres a small A+ (linux apl) session.<br><br> A+<br> Copyright (c) 1990-2008 Morgan Stanley. All rights reserved.<br> This version is Release 4.22<br>> a ← 4<br>> v ← 5 6 7<br>> a + a<br> 8<br>> a + v<br>
9 10 11<br>> v + v<br> 10 12 14<br> > v × v<br> 25 36 49<br>> v ÷ v<br> 1 1 1<br>> v ÷ 2<br> 2.5 3 3.5<br>> v ≤ 6<br> 1 1 0<br> <br>