Hi,
Do you mean that if the new Yield types are in the iter package, it can be used after that? ``` type Yield[V any] func(V) bool type Yield2[K comparable, V any] func(K, V) bool type Seq[E any] func(Yield[E]) type Seq2[K comparable, V any] func(Yield2[K, V]) // not importing iter, so can't use the named types func All2[E any](s []E) func(func(E) bool) { return func(yield func(E) bool) { for _, v := range s { if !yield(v) { return } } } } func All2_b[E any](s []E) Seq[E] { return func(yield Yield[E]) { for _, v := range s { if !yield(v) { return } } } } ``` -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/tencent_18DF251811E3D0986292222F3A1664A82705%40qq.com.