I can't find any tutorials or info on Recursive List - cdr / car. I dont know what to return in member, any hints
Code:bool eq(list atom1, list atom2) // returns true if atom1 & atom2 are the saem atoms // otherwise false bool member(list p, list q) //q is an atomp; p is a list of atoms // member returns true if q is a memberCode:bool eq(list atom1, list atom2) if (atom1 == atom2) return true; return false; bool member(list p, list q) if(is_null(p) return false; return ??????