diff options
author | Marvin Borner | 2024-02-29 23:33:43 +0100 |
---|---|---|
committer | Marvin Borner | 2024-02-29 23:33:43 +0100 |
commit | fe951a51daa805f1abb9a973bbe749888d8f9a83 (patch) | |
tree | ff3bf1b0e39a9cba605dcd17dce26de2d7f22331 /samples/aoc/2023/01/solve.bruijn | |
parent | fe0de617cddd2dee11758788c5dc9b7a1c8f330a (diff) |
Synced samples
Diffstat (limited to 'samples/aoc/2023/01/solve.bruijn')
-rw-r--r-- | samples/aoc/2023/01/solve.bruijn | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/samples/aoc/2023/01/solve.bruijn b/samples/aoc/2023/01/solve.bruijn new file mode 100644 index 0000000..5fdfa88 --- /dev/null +++ b/samples/aoc/2023/01/solve.bruijn @@ -0,0 +1,7 @@ +:import std/Math . +:import std/String . +:import std/Char C + +part1 [[^0 ⋅ (+10) + _0] (filter (gre? (+9)) (C.number! <$> 0))] + +main [∑(part1 <$> (lines 0))] |