eaed99e52c
Agrega funciones Python reutilizables organizadas por dominio: - core: composicion funcional (pipe, compose, map, filter, reduce, etc.) - cybersecurity: analisis de amenazas y puertos - datascience: estadisticas y deteccion de outliers - finance: indicadores tecnicos y analisis financiero
585 B
585 B
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | tested | tests | test_file_path | file_path | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| flatten | function | py | core | 1.0.0 | pure | def flatten(xss: list) -> list | Aplana una lista de listas un nivel, concatenando las sublistas. |
|
false | false | python/functions/core/core.py |
Ejemplo
result = flatten([[1, 2], [3], [4, 5]])
# [1, 2, 3, 4, 5]
Notas
Funcion pura. Solo aplana un nivel de anidamiento.