---
name: tree_to_flat_list
kind: function
lang: py
domain: core
version: "1.0.0"
purity: pure
signature: "def tree_to_flat_list(structure: Any) -> list[dict]"
description: "Convierte arbol jerarquico a lista plana en orden DFS. Mantiene nodos internos con sus campos."
tags: [tree, flatten, dfs, hierarchy, pendiente-usar]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: []
params:
  - name: structure
    desc: "Árbol jerárquico con estructura anidada"
output: "Lista plana de nodos en orden DFS (depth-first search)"
tested: false
tests: []
test_file_path: ""
file_path: "python/functions/core/core.py"
source_repo: "https://github.com/VectifyAI/PageIndex"
source_license: "MIT"
source_file: "pageindex/utils.py"
---

## Ejemplo

```python
tree = {"title": "Root", "nodes": [{"title": "Child", "nodes": []}]}
tree_to_flat_list(tree)
# [{"title": "Root", "nodes": [...]}, {"title": "Child", "nodes": []}]
```

## Notas

Funcion pura. A diferencia de flatten_tree, mantiene los nodos internos con su campo 'nodes' intacto (referencias, no copias).
