Day 3
This commit is contained in:
1 parent
a93b16a6f6
commit
3c7e07fe4f
6 files changed
+41
-1
No files matched your search
+5
-1
@@ -1,10 +1,14 @@
|
||||
role AOC {
|
||||
# Exists mostly to allow day3 to run a subparse instead of a full parse
|
||||
method aocparse(::?CLASS:U: $content) {
|
||||
self.parse($content).made
|
||||
}
|
||||
method part1(::?CLASS:U: $v) { ... }
|
||||
|
||||
method part2(::?CLASS:U: $v) { ... }
|
||||
|
||||
method main(::?CLASS:U:) {
|
||||
my \parsed = self.parse(slurp(@*ARGS[0])).made;
|
||||
my \parsed = self.aocparse(slurp(@*ARGS[0]));
|
||||
say self.part1(parsed);
|
||||
say self.part2(parsed);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user