Currently I’m aware of 2 set implementations in SWI:
library(ordset), which is quite inefficient for my current use case (adding and removing items in a tight loop with a maximum size of a million terms)
library(nb_sets), which seems not to have an option to remove an element from the set.
So are there any implementations of sets available that I have not yet found that are fully functional (in the sense that I can do all common set operations on it, adding, removing elements as well as creating unions, intersections and differences) while still beeing effective?
I do not care if they are “mutating” a value
nb_sets does or if they do it similar to
ordsets with a relationship.