Skip to content

Commit

Permalink
[src/core/metaops.pm] make [gcd]() fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Masak committed May 11, 2011
1 parent a423aef commit 678ad30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/metaops.pm
Expand Up @@ -280,7 +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:<gcd>() { fail 'Cannot take gcd of the empty list' }
our multi sub infix:<gcd>(Int $x) { $x }
our multi sub infix:<lcm>(Int $x = 1) { $x }
our multi sub infix:<?&>($x = Bool::True) { ?$x }
our multi sub infix:<+&>() { +^0 }
Expand Down

0 comments on commit 678ad30

Please sign in to comment.