Can you miss something you weren't aiming at? Thanks for the fun fact,
Uri :)
On 05/14/2016 04:09 PM, Uri Guttman wrote:
On 05/14/2016 06:58 PM, Aaron Wells wrote:
Ha. Java has one... but it's not very pretty. Just like anything
Java, it's bloated, overly verbose, and clunky. Java just discovered
"lambdas" a couple years ago with jdk 8. But functional languages
have had lambda syntax for years.
Ocaml: List.map((*) 2)[1;2;3;4;5]
Haskell: map (2*)[1,2,3,4,5]
And lots more examples here: http://c2.com/CGI/wiki?MapFunction
Then of course there's "whatever" syntax in Perl 6:
map * ** 2, [1,2,3,4,5]
but you missed the originator of map which is lisp.
uri
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/