I have a list of the form '(x y . rest)
(of the form of lambda with optional number of arguments).
I need to check whether I have such a case, but I seem to fail to check that. What I was planning to do is search if .
is a member of the list.
> (memq '\. '(x y z . rest))
Exception in memq: improper list (x y z . rest)
Type (debug) to enter the debugger.
> (memq . '(x y z . rest))
Exception: invalid syntax (x y z . rest)
Type (debug) to enter the debugger.
> (memv '\. '(x y z \. rest))
(\x2E; rest) ;this worked but my input is of the form '(x y z . rest) and not '(x y z \. rest)