Skip to content

Instantly share code, notes, and snippets.

@chomado
Created May 9, 2013 07:16
Show Gist options
  • Save chomado/5546060 to your computer and use it in GitHub Desktop.
Save chomado/5546060 to your computer and use it in GitHub Desktop.
; b) 1つのリストを引数とし、aというシンボルがいくつあるかを返す。
(defun a-ikutu (lst)
(if (null lst)
0
(+ (if (eql (car lst) 'a)
1
0)
(a-ikutu (cdr lst)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment