is it possible to have a struct field as such, basically with a blank/ignored generic parameter? I want to have iterator behavior inherited, but I don't want the individual iterator types (KeyIterator, ValueIterator) to need to specify the other type which isn't used
type NodeIterator[K, V any] struct { ... }
type KeyIterator[K any] struct {
// java: NodeIterator<K, ?> (I know, these compile differently)
iter *NodeIterator[K, any]
}
keyIter := &KeyIterator[string]{
// compile error due to int != any
iter: &NodeIterator[string, int]{...}
}