I'm writing a program with several parameters. One of these is the world state, one contains a group of lists called RR, and the other contains just one state called PR. The idea is that the user will choose a list from RR to be used before running the program, the program will be aware of the choice but not the contents of the list at the start. At a certain point in the program the program will be allowed access to the list from RR and will then have to compare it against PR. I'm trying to figure out the best way to do this and could use some advice, before proceeding.
Is there a way to compare two parameters as you would compare two ordinary lists? If so, how would I define which list from RR I was using? Would it be better to copy the list from RR into a variable within world, and then compare it with PR?
On a related topic, is there a funtion similar to the merge funciton that takes the elements of a list that don't appear in another and add them to a seperate list? like this;
Code: Select all
(function 'list2 (list1 1 2 3 4) (list2 1 2 6 7) )
#(3 4)

Thank you very much