aboutsummaryrefslogtreecommitdiffhomepage
path: root/samples/aoc/2021/01/solve.bruijn
diff options
context:
space:
mode:
authorMarvin Borner2024-03-03 15:03:41 +0100
committerMarvin Borner2024-03-03 22:29:24 +0100
commit6ae44d09faa0ae353c0818705503cad42127d102 (patch)
treea923d00d520f85a608f51416184e5b3b6f178549 /samples/aoc/2021/01/solve.bruijn
parent03155d6e515c76d5ab59f814592484c849313130 (diff)
Even more samples
wtf
Diffstat (limited to 'samples/aoc/2021/01/solve.bruijn')
-rw-r--r--samples/aoc/2021/01/solve.bruijn2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/aoc/2021/01/solve.bruijn b/samples/aoc/2021/01/solve.bruijn
index d48acff..1c14b3b 100644
--- a/samples/aoc/2021/01/solve.bruijn
+++ b/samples/aoc/2021/01/solve.bruijn
@@ -6,7 +6,7 @@ part1 [{ [[(1 <? 0) (+1) (+0)]] | 0 , ~0 }]
part2 [{ [[(1 <? 0) (+1) (+0)]] | 0 , ~(~(~0)) }]
main [parts nums]
- nums number! <$> (lines 0)
+ nums string→number <$> (lines 0)
parts [∑(part1 0) : ∑(part2 0)]
# equivalent alternative using std/Pair P