Does Common Lisp have a something like java's Set Interface/implementing classes? -
i need this, collection of elements contains no duplicates of element. common lisp, sbcl, have thing this?
for quick solution, use hash tables, has been mentioned before.
however, if prefer more principled approach, can take @ fset, “a functional set-theoretic collections library”. among others, contains classes , operations sets , bags.
(edit:) cleanest way define set-oriented operations generic functions. set of generic functions equivalent java interface, after all. can implement methods on standard hash-table class first prototype , allow other implementations well.
Comments
Post a Comment