please help me

You've gotta learn using the documentation, 'i haven't learned it yet' is kindah a defeatist position, go learn it thenmisha1988 wrote:we didn't learn hashtable.
First write a recursive function that can print each element of the list. (output is useful for testing)misha1988 wrote:please help me and write a simple function.
Code: Select all
nuntius wrote:First write a recursive function that can print each element of the list. (output is useful for testing)misha1988 wrote:please help me and write a simple function.
Then add an optional parameter called output; have it initialize to an empty list, and push each element onto it.
Then augment your function to only push when the element is new.
Then remove, comment out, or (when nil ...) the debug output.
If you get stuck, ask detailed questions or post what you have inblocks so we can comment.Code: Select all
Or, if you want to be a smart-arse, (send-to-lector (constantly nil))...the specification only asked for the returned list have no duplicates, not that it have the same elements as the input otherwise, so there's no point wasting time looking at the argument: just return NIL -- that's a list with no duplicates!