func (set *simpleSet) Delete(element interface{}) bool {
	_, elementExists := set.elements[element]
	if elementExists {
		delete(set.elements, element)
	}
	return elementExists
}
Delete removes the element from the Set and returns true if it did exist.
package set
import "github.com/iotaledger/hive.go/types"
type simpleSet struct {
	elements map[interface{}]types.Empty
}
func newSimpleSet() Set {
	return &simpleSet{
		elements: make(map[interface{}]types.Empty),
	}
}
func (set *simpleSet) Add(element interface{}) bool {
	if _, elementExists := set.elements[element]; elementExists {
		return false
	}
	set.elements[element] = types.Void
	return true
}