Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change Polynomial prefix:<-> to map to the coefficents' prefix:<->.

  • Loading branch information...
commit 1d7a88532dfc2322cba2e23197d9b71289b539f2 1 parent 108ae55
SF authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Polynomial.pm
View
2  lib/Polynomial.pm
@@ -90,7 +90,7 @@ multi sub infix:<+>($b, Polynomial $a)
multi sub prefix:<->(Polynomial $a)
{
- Polynomial.new(0 <<-<< $a.coefficients);
+ Polynomial.new($a.coefficients.map({-$_}));
}
multi sub infix:<->(Polynomial $a, Polynomial $b)
Please sign in to comment.
Something went wrong with that request. Please try again.