golang-set
golang-set copied to clipboard
Define a read-only Set interface
Sometimes I want to return from a function a read-only Set backed by mapset's Set. It would be great if this package would define a read-only sub-set of Set interface for this purpose.
Current Set interface could then be defined by expanding the read-only Set interface with methods for mutability.