Page 2 of 2

Re: Some basic lisp functions -trying to teach myself the ba

Posted: Mon Sep 16, 2013 7:39 am
by arturoVidal
WOW thanks heaps for your help (both of you ;) )

Finally wrote my static heuristic evaluation function for C4 :D :D :D

Re: Some basic lisp functions -trying to teach myself the ba

Posted: Sun Nov 17, 2013 2:47 am
by ykm
head about set-differrence?

Code: Select all

CL-USER> (set-difference '(1 2 3 4 5) '(3 4))
(5 2 1)

Re: Some basic lisp functions -trying to teach myself the ba

Posted: Sun Nov 17, 2013 11:31 am
by Goheeca
It depends, whether the resulting set should be generated in a stable way.
There is no guarantee that the order of elements in the result will reflect the ordering of the arguments in any particular way. The result list may share cells with, or be eq to, either of list-1 or list-2, if appropriate.
OP didn't answer this.