about summary refs log tree commit diff
path: root/day02.mew
diff options
context:
space:
mode:
Diffstat (limited to 'day02.mew')
-rw-r--r--day02.mew7
1 files changed, 7 insertions, 0 deletions
diff --git a/day02.mew b/day02.mew
new file mode 100644
index 0000000..d274993
--- /dev/null
+++ b/day02.mew
@@ -0,0 +1,7 @@
+(op=> (lines "day02")
+      (gmap (match-fun ("A X" '(4 3)) ("A Y" '(8 4)) ("A Z" '(3 8))
+                       ("B X" '(1 1)) ("B Y" '(5 5)) ("B Z" '(9 9))
+                       ("C X" '(7 2)) ("C Y" '(2 6)) ("C Z" '(6 7))) _)
+      ,(inject (op* map +))
+      unlist
+      prn)