Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
s/\.for/\.flatmap/
since .for is not longer the flattening variant of .map
  • Loading branch information
TimToady committed Apr 28, 2015
1 parent 5bf39d0 commit 8b6054a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion categories/shootout/n-body-v2.p6
Expand Up @@ -81,7 +81,7 @@ my Body @bodies = (
[ 2.68067772490389322e-03,
1.62824170038242295e-03,
-9.51592254519715870e-05])
).for: -> $m, [$x, $y, $z], [$vx, $vy, $vz] {
).flatmap: -> $m, [$x, $y, $z], [$vx, $vy, $vz] {
Body.new:
:m($m * SOLAR_MASS),
:r(Vector.new: :$x, :$y, :$z),
Expand Down

0 comments on commit 8b6054a

Please sign in to comment.