Skip to content

Commit 8b6054a

Browse files
committed
s/\.for/\.flatmap/
since .for is not longer the flattening variant of .map
1 parent 5bf39d0 commit 8b6054a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

categories/shootout/n-body-v2.p6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ my Body @bodies = (
8181
[ 2.68067772490389322e-03,
8282
1.62824170038242295e-03,
8383
-9.51592254519715870e-05])
84-
).for: -> $m, [$x, $y, $z], [$vx, $vy, $vz] {
84+
).flatmap: -> $m, [$x, $y, $z], [$vx, $vy, $vz] {
8585
Body.new:
8686
:m($m * SOLAR_MASS),
8787
:r(Vector.new: :$x, :$y, :$z),

0 commit comments

Comments
 (0)