Permalink
Browse files

switch method integrate to named args, just as the tests expect

  • Loading branch information...
moritz committed Apr 25, 2012
1 parent 3462809 commit 6c3f359e0f24d8523e94f891977f34b19285e0e0
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Math/Model.pm
View
@@ -57,7 +57,7 @@ method topo-sort(*@vars) {
}
-method integrate($from = 0, $to = 10, $min-resolution = ($to - $from) / 20, :$verbose) {
+method integrate(:$from = 0, :$to = 10, :$min-resolution = ($to - $from) / 20, :$verbose) {
for %.derivatives -> $d {
die "There must be a variable defined for each derivative, missiing for '$d.key()'"
unless %.variables.exists($d.key) || %!inv.exists($d.key);

0 comments on commit 6c3f359

Please sign in to comment.