---
name: any_of
kind: function
lang: py
domain: core
version: "1.0.0"
purity: pure
signature: "def any_of(xs: list, pred: callable) -> bool"
description: "Retorna True si al menos un elemento de la lista cumple el predicado."
tags: [list, functional, predicate, any, python, pendiente-usar]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: []
params:
  - name: xs
    desc: "lista de elementos a evaluar"
  - name: pred
    desc: "predicado (funcion que retorna bool) para evaluar cada elemento"
output: "booleano: True si al menos un elemento cumple el predicado, False en caso contrario"
tested: false
tests: []
test_file_path: ""
file_path: "python/functions/core/core.py"
---

## Ejemplo

```python
result = any_of([1, 3, 5, 4], lambda n: n % 2 == 0)
# True
```

## Notas

Funcion pura. Retorna False para lista vacia. Cortocircuita al primer True.
