From 24d7fab85b2eb1b7996fd0ceccdd0377f1ce087b Mon Sep 17 00:00:00 2001
From: Andreas Grois <andi@grois.info>
Date: Fri, 1 Dec 2023 23:21:14 +0100
Subject: Day 1

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

(limited to 'Common/Helpers.lean')

diff --git a/Common/Helpers.lean b/Common/Helpers.lean
new file mode 100644
index 0000000..f57f826
--- /dev/null
+++ b/Common/Helpers.lean
@@ -0,0 +1,2 @@
+def curry (g : (α × β) → γ) : α → β → γ := λ a b ↦ g (a,b)
+def uncurry (f : α → β → γ) : (α × β) → γ := λ (a,b) ↦ f a b
-- 
cgit v1.2.3

