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

Re: reduce metaoperator on an empty list

Thread Previous | Thread Next
From:
=?ISO-8859-1?Q?=22TSa_=28Thomas_Sandla=DF=29=22?=
Date:
May 20, 2005 10:39
Subject:
Re: reduce metaoperator on an empty list
Message ID:
428E20A9.8070708@orthogon.com
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About