This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun howmany (obj lst) | |
(let ((res | |
(remove-if-not #'(lambda (x) | |
(if (equal x obj) t)) | |
lst))) | |
(length res))) | |
;; we used remove-if-not to do this instead of dolist because it was just a bit easier | |
(defun uniques (lst) |