ruricolist / serapeum

Utilities beyond Alexandria
MIT License
415 stars 41 forks source link

Add stable-set-difference #148

Closed Ambrevar closed 1 year ago

Ambrevar commented 1 year ago

set-difference is a notorious pitfall in Common Lisp since it does not guarantee the order of the returned elements, which is arguably counter-intuitive.

Thus I propose Serapeum includes a stable-set-difference function.

ruricolist commented 1 year ago

Good idea! Good name for it too. This is true of all the other set functions also. A stable-union is something I would reach for often.

Ambrevar commented 1 year ago

@ruricolist Thanks a lot for the prompt implementation @aartaka It's now in! :)

aartaka commented 1 year ago

Hooray!