package resolver import "iter" func Filter1Func[K, V any](S iter.Seq2[K, V], match func(V) bool) iter.Seq2[K, V] { return func(yield func(K, V) bool) { for k, v := range S { if match(v) { if !yield(k, v) { break } } } } }