develooper Front page | perl.perl6.language | Postings from June 2005

Re: reduce metaoperator on an empty list

Thread Previous | Thread Next
Michele Dondi
June 1, 2005 05:17
Re: reduce metaoperator on an empty list
Message ID:
On Wed, 1 Jun 2005, Luke Palmer wrote:

>    $ordered = [<] @array;
> If @array is empty, is $ordered supposed to be true or false?   It
> certainly shouldn't be anything but those two, because < is a boolean
> operator.

I read that (mathematically) as "for all i, for all j such that j-i=1,
a_i<a_j", which is certainly satisfied by an empty list.

> Why should I read the fucking manual? I know how to fuck!
In fact the problem is that the fucking manual only gives you 
theoretical knowledge which is useless in practice ;)
- Giuseppe "Oblomov" Bilotta in a bunch of usenet groups.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About