golang-set icon indicating copy to clipboard operation
golang-set copied to clipboard

Define a read-only Set interface

Open mitar opened this issue 8 months ago • 0 comments

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.

mitar avatar Mar 28 '25 07:03 mitar