Closed cage2 closed 4 years ago
I've found that set-equal has ben handled in Common Lisp Recipes. Instead of set-difference, Weitz uses set-exclusive-or. set-difference isnt suitable when list-a is longer than list-b, it just subtracts b from a. I've renamed set= to set-equal, because = is usually reserved for numerical arguments. Thanks for your quick response.
On Sat, Dec 21, 2019 at 01:13:51PM -0800, McParen wrote:
Hello!
I've found that set-equal has ben handled in Common Lisp Recipes. Instead of set-difference, Weitz uses set-exclusive-or. set-difference isnt suitable when list-a is longer than list-b, it just subtracts b from a.
Ah i see! So the function 'set-difference' is not the simmetric difference, it is the complement, is it? Then i read the documentation (hyperspec) wrong. :(
I've renamed set= to set-equal, because = is usually reserved for numerical arguments.
Right!
Thanks for your quick response.
You're welcome!
Bye! C.
PS: thank you also for remind me about the precious Weitz book! :)
Hi! this hopefully fix the problem in #19 .
Also i have added set=, this is a general utility maybe that could placed elsewhere,
util.lisp
peraphs?Bye! C.