set icon indicating copy to clipboard operation
set copied to clipboard

refactor: generic hash set

Open VictorAssunc opened this issue 2 years ago • 1 comments

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

VictorAssunc avatar Mar 21 '22 18:03 VictorAssunc

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 🥲

ftcRibeiro avatar Sep 06 '22 12:09 ftcRibeiro

Fixed by https://github.com/StudioSol/set/pull/9

VictorAssunc avatar Jul 17 '24 14:07 VictorAssunc