Navigation Menu

Skip to content

Commit

Permalink
Add degenerate cases for infix:<gcd> and infix:<lcm>.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed May 11, 2011
1 parent b5084f6 commit a423aef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/metaops.pm
Expand Up @@ -280,6 +280,8 @@ our multi sub reducewith(&op, *@args,
# this fails for operators defined in PIR, so some of them are commented out.
our multi sub infix:<**>($x = 1) { +$x }
our multi sub infix:<*>($x = 1) { +$x }
our multi sub infix:<gcd>(Int $x = 1) { $x }
our multi sub infix:<lcm>(Int $x = 1) { $x }
our multi sub infix:<?&>($x = Bool::True) { ?$x }
our multi sub infix:<+&>() { +^0 }
our multi sub infix:<+>($x = 0) { +$x }
Expand Down

0 comments on commit a423aef

Please sign in to comment.