home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!usc!news.cerf.net!netlabs!lwall
- From: lwall@netlabs.com (Larry Wall)
- Subject: Re: In 5.0, are we gonna get...
- Message-ID: <1992Dec19.021241.2128@netlabs.com>
- Sender: news@netlabs.com
- Nntp-Posting-Host: scalpel.netlabs.com
- Organization: NetLabs, Inc.
- References: <2B2D2498.874E@tct.com> <7246288358-314904@dec4.wu-wien.ac.at> <1992Dec18.140112.18192@cs.ruu.nl>
- Date: Sat, 19 Dec 1992 02:12:41 GMT
- Lines: 14
-
- In article <1992Dec18.140112.18192@cs.ruu.nl> henkp@cs.ruu.nl (Henk Penning) writes:
- : I would like to write:
- :
- : $max = reduce { $a > $b ? $a : $b } @row
-
- The credit-where-credit-is-due department: it should be pointed out
- that Henk suggested the reduce {$a + $b} @stuff syntax in the first
- place, which is why I happened to be talking about it with Mark.
-
- It seems to fit in nicely with the sort paradigm, if you can grace that
- construct with such a heavy-duty word. The interesting part is figuring
- out how to optimize it...
-
- Larry
-