Permalink
Browse files

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

  • Loading branch information...
1 parent 108ae55 commit 1d7a88532dfc2322cba2e23197d9b71289b539f2 SF committed Oct 13, 2009
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)

0 comments on commit 1d7a885

Please sign in to comment.