initial commit
This commit is contained in:
11
py-builtin/py-builtin.go
Normal file
11
py-builtin/py-builtin.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package py_builtin
|
||||
|
||||
func All[T comparable](slice []T, condition func(T) bool) bool {
|
||||
|
||||
for _, v := range slice {
|
||||
if !condition(v) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user