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

Re: reduce metaoperator on an empty list

Thread Previous | Thread Next
May 20, 2005 10:39
Re: reduce metaoperator on an empty list
Message ID:
Mark A. Biggar wrote:
> Well the identity of % is +inf (also right side only).

I read $n % any( $n..Inf ) == $n. The point is there's no
unique right identity and thus (Num,%) disqualifies for a
Monoid. BTW, the above is a nice example where a junction
needn't be preserved :)

> E.g. if X<Y is left associative and  returns Y when true then ...

Sorry, is it the case that $x = $y < $z might put something else
but 0 or 1 into $x depending on the order relation between $y and $z?
TSa (Thomas Sandlaß)

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