From b428712b5804e9efd66fff554204db2c1d669e37 Mon Sep 17 00:00:00 2001
From: Andreas Grois <andi@grois.info>
Date: Sat, 2 Dec 2023 13:04:27 +0100
Subject: Day 2

---
 Common/String.lean | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 Common/String.lean

(limited to 'Common/String.lean')

diff --git a/Common/String.lean b/Common/String.lean
new file mode 100644
index 0000000..7fe7aee
--- /dev/null
+++ b/Common/String.lean
@@ -0,0 +1,4 @@
+namespace String
+
+def splitTrim (c : Char → Bool) (s : String) : List String :=
+  String.trim <$> s.split c
-- 
cgit v1.2.3

