Re: "Secret" operators

José Castro <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
* Andrew Savige ([email protected]) wrote:
> Not that it is seen very often, but you might try dreaming up a
> name for:
> 
>     ]->[
> 
> I first saw this operator employed in a graceful way to return the
> lesser of $x and $y:

Or the greater, if used like this:

    [ $x => $y ]->[ $x <= $y ]

or

    [ $x => $y ]->[ $y >= $x ]

>     [ $x => $y ]->[ $y <= $x ]
> 
> /-\
> 
> 
> Find local movie times and trailers on Yahoo! Movies.
> http://au.movies.yahoo.com
--
Jose Alves de Castro <[email protected]>
      http://jose-castro.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.