I'm trying to learn lisp and the task I'm trying to conquer is this .
I need to write a recursive function which checks for a given atom that occurs anywhere in an expression.
for example
function search 'a '(b a c)) returns T
search 'a '(k (g c a) h )) returns T
I'm lost please any help would be greatly appreciated
I need to write a recursive function which checks for a given atom that occurs anywhere in an expression.
for example
function search 'a '(b a c)) returns T
search 'a '(k (g c a) h )) returns T
I'm lost please any help would be greatly appreciated