# module `compression`
---
## function `indexCollapse`
```python
indexCollapse(array: list, searchPattern=None, index=False) → list
```
Collapse array with optional preset index of array, otherwise we automatically index it then return the index and collapsed array
---
## function `rebuild`
```python
rebuild(index: list, collapsedArray: list) → list
```
Rebuild collapsed array
---
_This file was automatically generated via [lazydocs](https://github.com/ml-tooling/lazydocs)._