From fe951a51daa805f1abb9a973bbe749888d8f9a83 Mon Sep 17 00:00:00 2001
From: Marvin Borner
Date: Thu, 29 Feb 2024 23:33:43 +0100
Subject: Synced samples

---
 samples/aoc/2023/01/input        | 4 ++++
 samples/aoc/2023/01/solve.bruijn | 7 +++++++
 2 files changed, 11 insertions(+)
 create mode 100644 samples/aoc/2023/01/input
 create mode 100644 samples/aoc/2023/01/solve.bruijn

(limited to 'samples/aoc/2023')

diff --git a/samples/aoc/2023/01/input b/samples/aoc/2023/01/input
new file mode 100644
index 0000000..7bbc69a
--- /dev/null
+++ b/samples/aoc/2023/01/input
@@ -0,0 +1,4 @@
+1abc2
+pqr3stu8vwx
+a1b2c3d4e5f
+treb7uchet
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))]
-- 
cgit v1.2.3