arr-ai / frozen

Efficient immutable data type library. https://godoc.org/github.com/arr-ai/frozen
Apache License 2.0
13 stars 3 forks source link

Consider redefining Map and Set as interfaces #39

Open marcelocantos opened 4 years ago

marcelocantos commented 4 years ago

Perhaps Set and Map should be interfaces. Different implementations could be optimised for specific use cases (e.g., IntSet) and even have their own specific methods, but all usable via the common interfaces. It should thus be possible to union a Set and an IntSet.