Re: [go-nuts] Sets

2022-09-27 Thread robert engels
I do not. A lot depends on if you want to use optional methods which is difficult in Go, but many have given plenty of starting ideas. type Collection interface { Contains(e E) bool // may be slow, requiring a scan Iterator() ElementIterator[E] } type Set interface { // simply a marker that

Re: [go-nuts] Sets

2022-09-27 Thread Ian Davis
On Tue, 27 Sep 2022, at 6:57 PM, Robert Engels wrote: > The github set issue is impossible to follow without using github. > > Please simply define the interfaces. The implementations will follow. > You can have simple iterators, indexed iterators, map (key/value) > iterators, errorable iterator

[go-nuts] Sets

2022-09-27 Thread Robert Engels
The github set issue is impossible to follow without using github. Please simply define the interfaces. The implementations will follow. You can have simple iterators, indexed iterators, map (key/value) iterators, errorable iterators, closable iterators. You can define how to provide/adapt fo