Created
May 9, 2013 07:49
-
-
Save anonymous/5546134 to your computer and use it in GitHub Desktop.
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 a-ikutu (lst) | |
(length (filter #'(lambda (x) (eq x 'a)) lst))) | |
;; filter関数 | |
(defun filter (pred lst) | |
(cond ((null lst) nil) | |
((funcall pred (car lst)) | |
(cons (car ls) (filter pred (cdr lst)))) | |
(t (filter pred (cdr lst))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment