summaryrefslogtreecommitdiff
path: root/4-2.scm
diff options
context:
space:
mode:
authorlamp2023-12-08 14:31:31 +0000
committerlamp2023-12-08 14:31:31 +0000
commit8b200eebe9c88f98e7136b206790d6ef472a28ac (patch)
tree548eefa099bc7022b52c14fcee80a049f625f6f5 /4-2.scm
parent072ad674c7fa940d89182c548489136e7e8d55d7 (diff)
day 4: tidy
Diffstat (limited to '4-2.scm')
-rwxr-xr-x4-2.scm5
1 files changed, 0 insertions, 5 deletions
diff --git a/4-2.scm b/4-2.scm
index 48517ce..940346a 100755
--- a/4-2.scm
+++ b/4-2.scm
@@ -25,11 +25,6 @@
(lines (read-lines port))
(cards (map parse lines)))
(close-port port)
- ;; (while (< index (length cards))
- ;; (do ((i 1 (1+ i))) ((> i (cdr (list-ref cards index))))
- ;; (set! cards (append cards `(,(assoc (+ (car (list-ref cards index)) i) cards)))))
- ;; (set! index (1+ index)))
- ;; (display (length cards))
(do ((i 0 (1+ i))) ((= i (length cards)))
(do ((j 1 (1+ j))) ((> j (car (list-ref cards i))))
(let ((card (list-ref cards (+ i j))))