On Jul 30, 2011, at 6:40 PM, Mark J. Reed wrote:

On Sat, Jul 30, 2011 at 6:02 PM, Bruce Gray <bruce.g...@acm.org> wrote:
--snip--
our multi sub infix:<xor2> ( $x, $y ) { ( $x + $y ) % 2 };

Why did you need to define this yourself instead of just using +^ ?

Umm, because that is what was done in the Haskell code I was translating? That is my only excuse for my oversight. You are correct; in fact, Solomon Foster already pointed this out to me, and I have already posted the revised
version on RC as a second solution:
        http://rosettacode.org/wiki/Gray_code#Perl_6

--
Hope this helps,
Bruce Gray (Util of PerlMonks)

Reply via email to