Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added flat() to advent2009-day21.t
  • Loading branch information
dwarring committed Aug 22, 2015
1 parent 389b92a commit b0a61c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/advent2009-day21.t
Expand Up @@ -28,7 +28,7 @@ class Question {
print "> ";
my $line = $*IN.get();
my @answers = $line.comb(/<digit>+/)>>.Int.sort;
my @correct = @.answers.kv.map({ $^value.correct ?? $^key !! () });
my @correct = flat @.answers.kv.map({ $^value.correct ?? $^key !! () });
if @correct ~~ @answers {
say "Yay, you got it right!";
return 1;
Expand Down

0 comments on commit b0a61c7

Please sign in to comment.