I need something like this, a collection of elements which contains no duplicates of any element. Does Common Lisp, specifically SBCL, have any thing like this?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Yes, it has sets. See this section on "Sets" from Practical Common Lisp.
Basically, you can create a set with
pushnew
andadjoin
, query it withmember
,member-if
andmember-if-not
, and combine it with other sets with functions likeintersection
,union
,set-difference
,set-exclusive-or
andsubsetp
.Not that I'm aware of, but you can use hash tables for something quite similar.