aboutsummaryrefslogtreecommitdiff
path: root/2022/lib.lisp
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-10-29 20:00:39 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-10-29 20:00:39 +0000
commitcd94c350e69a931f4dfc84ecfe34a333a91b3552 (patch)
tree478f21514e7f37082d02948950779cefc55e3c2c /2022/lib.lisp
parentb2c570524c7371e40e21ae107f4b62790607717a (diff)
downloadadvent-of-code-cd94c350e69a931f4dfc84ecfe34a333a91b3552.tar.gz
advent-of-code-cd94c350e69a931f4dfc84ecfe34a333a91b3552.tar.bz2
advent-of-code-cd94c350e69a931f4dfc84ecfe34a333a91b3552.zip
Use every instead of all
Diffstat (limited to '2022/lib.lisp')
-rw-r--r--2022/lib.lisp6
1 files changed, 0 insertions, 6 deletions
diff --git a/2022/lib.lisp b/2022/lib.lisp
index 1d81219..6c55508 100644
--- a/2022/lib.lisp
+++ b/2022/lib.lisp
@@ -29,12 +29,6 @@
(defun id (x) x)
-(defun all (pred lst)
- (if (not (cdr lst))
- (funcall pred (car lst))
- (and (funcall pred (car lst))
- (all pred (cdr lst)))))
-
(defun remove-nth (n lst)
(if (or (null lst) (= n 0))
(cdr lst)