Possible solutions are
- - To use HashSet of System.Collection? - I can't, dont know why.
- To use a Dictionary with a Compare-objects object using keys as elements and using dummy elements. It works but it's a botch-up.
class Set<of T> ...
cue init
cue init(capacity as int)
cue init(items as IEnumerable<of T>)
cue init(comparer as IEqualityComparer<of T>)
cue init(items as IEnumerable<of T>?, comparer as IEqualityComparer<of T>?)
cue init(capacity as int, items as IEnumerable<of T>?, comparer as IEqualityComparer<of T>?)
Users browsing this forum: No registered users and 49 guests