home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!olivea!hal.com!bang.hal.COM!not-for-mail
- From: landman@hal.COM (Howard Landman)
- Newsgroups: comp.lang.perl
- Subject: Re: In 5.0, are we gonna get...
- Message-ID: <1ht5mpINN7s2@bang.hal.COM>
- Date: 30 Dec 92 21:52:25 GMT
- References: <1992Dec14.043835.23009@reed.edu> <1992Dec14.192007.7534@wdl.loral.com>
- Organization: HaL Computer Systems, Inc.
- Lines: 16
- NNTP-Posting-Host: bang.hal.com
-
- In article <1992Dec14.192007.7534@wdl.loral.com> mab@wdl39.wdl.loral.com (Mark A Biggar) writes:
- >Larry has talked about adding a 'reduce' operator that
- >calls a special sort like function (used $a,$b for arg passing) on each element
- >of a list for doing summations like so:
- >
- > $sum = reduce {$a+$b} 1,34,$x,45,-8,0.1;
-
- You should look at the way this sort of thing is handled in data-parallel
- languages, such as those for programming the Connection Machine. C* is
- probably the closest to Perl in flavor. It's very clean and natural.
-
- The only difficulty I can see is a potential conflict with the current behavior
- of arrays in a scalar context.
-
- Howard A. Landman
- HaL Computer Systems
-