set
set copied to clipboard
refactor: generic hash set
I had trouble getting the variadic parameter to work and the simplest solution I found was to change it to receive a slice.
So references like the following will not work:
linkedHashSet := set.NewLinkedHashSet(1, 1, 2, 2, 3, 3)
linkedHashSet.Add(1, 2, 3, 4)
linkedHashSet.Remove(0, 1, 2, 3)
Accepting ideas to work around it
A tentativa desse przin deu bom.
A maior diferença foi usar o comparable 🤔. Fiz o pr antes de ver que tu já tinha começado aqui 🥲
Fixed by https://github.com/StudioSol/set/pull/9