Vendor dependencies

This commit is contained in:
dwrz
2026-10-23 14:11:51 +00:00
parent 1dfdc0725f
commit 2f0cbbe957
683 changed files with 176490 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package iterutil
import "iter"
func All[T any](seq iter.Seq[T], fn func(T) bool) bool {
for v := range seq {
if !fn(v) {
return false
}
}
return true
}
func Any[T any](seq iter.Seq[T], fn func(T) bool) bool {
for v := range seq {
if fn(v) {
return true
}
}
return false
}