Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more for loop damage
  • Loading branch information
TimToady committed Apr 28, 2015
1 parent ee79237 commit e0193f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/advent2010-day06.t
Expand Up @@ -24,10 +24,10 @@ my @a = (2, 4, 6);
my @b = (5, 10, 15);
my @c = (3, 5, 7);

my @Z-ab = gather for @a Z @b -> $a, $b { take [$a, $b] }
my @Z-ab = gather for flat @a Z @b -> $a, $b { take [$a, $b] }
is_deeply @Z-ab, [[2, 5], [4, 10], [6, 15]], '@a Z @b';

my @Z-abc = gather for @a Z @b Z @c -> $a, $b, $c { take [$a, $b, $c] }
my @Z-abc = gather for flat @a Z @b Z @c -> $a, $b, $c { take [$a, $b, $c] }
is_deeply @Z-abc, [[2, 5, 3], [4, 10, 5], [6, 15, 7]], '@a Z @b Z @c';

# just do a three sided dice
Expand Down

0 comments on commit e0193f5

Please sign in to comment.