Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
GLR flattening in 2010 advent days 10 & 21
  • Loading branch information
dwarring committed Aug 25, 2015
1 parent 6d9eef2 commit 4626a7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration/advent2012-day10.t
Expand Up @@ -66,7 +66,7 @@ is q:to"THE END", $pub-with-no-beer, 'heredoc auto indent';
my @expected-searches = <beer masak vacation whisky>;
my ($input, @searches) = q:to/INPUT/, q:to/SEARCHES/.lines.list;
my ($input, @searches) = flat q:to/INPUT/, q:to/SEARCHES/.lines.list;
Once upon a time, there was a pub. The pub had
lots of awesome beer. One day, a Perl workshop
was held near to the pub. The hackers drank
Expand Down
2 changes: 1 addition & 1 deletion integration/advent2012-day21.t
Expand Up @@ -92,7 +92,7 @@ sub MAIN(*@numbers) {
}
END
my @numbers = 1..200, 10000..10200;
my @numbers = flat 1..200, 10000..10200;
sub collatz-length(Int $start) {
+($start, { when * %% 2 { $_ / 2 }; when * !%% 2 { 3 * $_ + 1 }; } ... 1);
Expand Down

1 comment on commit 4626a7d

@dwarring
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually 2012 days 10 & 21

Please sign in to comment.