mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-13 17:12:05 -04:00
groupware: add suppliers support for object changes
This commit is contained in:
@@ -397,3 +397,12 @@ func Flatten[T any](s [][]T) []T {
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
func AllMatch[T any](s []T, predicate func(e T) bool) bool {
|
||||
for _, e := range s {
|
||||
if !predicate(e) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user