I'm trying to write a function which builds, from a list, a list without the elements
that begin with a given letter, and by using char and string; example:
that begin with a given letter, and by using char and string; example:
(remove 'n '(nose naked retired art friend)) ==> (art friend retired)
What I did so far : (defun my-remove (r list)
(cond
((not list) nil)
((equal (char (string (car list))0)#R)(my-remove r(cdr list)))
(t (cons (car list) (my-remove r(cdr list)))) ) )
But keeps returning :
(remove 'n '(nose naked retired art friend)) ==> (NOSE NAKED ART FRIEND)
What did I miss ?