home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / perl / 7543 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1023 b   |  27 lines

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