Use every instead of all

This commit is contained in:
2024-10-29 20:00:39 +00:00
parent b2c570524c
commit cd94c350e6
2 changed files with 3 additions and 9 deletions

View File

@@ -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)