I know Java, I know C, I know a touch of C++ but Lisp is absolute zero, well not really. I am to use car, cdr, cons, cond to write some functions and only these predicates. I know car returns first element of a list and I know cdr returns the rest and can be used to break a list down. I know cons constructs lists and cond is a big ugly way of saying I wish I was an if statement. The functions I need help writing will interleave two lists, another returns true if an element is in a list, returns true if two lists are identical, and the last function returns the set of all subsets in a list.
Any assistance is of great appreciation as I am like a newcomer to Lisp and I kinda like the interpreted functional language .
Any assistance is of great appreciation as I am like a newcomer to Lisp and I kinda like the interpreted functional language .