42 lines
1.2 KiB
Markdown
42 lines
1.2 KiB
Markdown
<!-- markdownlint-disable -->
|
|
|
|
<a href="https://git.utopic.work/PierMesh/ShrinkRay/src/branch/main/src/compression.py#L0"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
|
|
|
|
# <kbd>module</kbd> `compression`
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
<a href="https://git.utopic.work/PierMesh/ShrinkRay/src/branch/main/src/compression.py#L6"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
|
|
|
|
## <kbd>function</kbd> `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
|
|
|
|
|
|
---
|
|
|
|
<a href="https://git.utopic.work/PierMesh/ShrinkRay/src/branch/main/src/compression.py#L41"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
|
|
|
|
## <kbd>function</kbd> `rebuild`
|
|
|
|
```python
|
|
rebuild(index: list, collapsedArray: list) → list
|
|
```
|
|
|
|
Rebuild collapsed array
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
_This file was automatically generated via [lazydocs](https://github.com/ml-tooling/lazydocs)._
|