--- name: any_slice kind: function lang: go domain: core version: "1.0.0" purity: pure signature: "func Any[T any](slice []T, predicate func(T) bool) bool" description: "Devuelve true si al menos un elemento del slice cumple el predicado." tags: [slice, functional, generic, predicate, pendiente-usar] uses_functions: [] uses_types: [] returns: [] returns_optional: false error_type: "" imports: [] params: - name: slice desc: "slice de elementos a validar" - name: predicate desc: "función que evalúa cada elemento; retorna true si cumple la condición" output: "true si al menos un elemento cumple el predicado; false en caso contrario" tested: false tests: [] test_file_path: "" file_path: "functions/core/any_slice.go" --- ## Ejemplo ```go result := Any([]int{1, 2, 3}, func(x int) bool { return x > 2 }) // result = true ``` ## Notas Funcion pura generica. Implementacion en devfactory/core.