conversion of recursive functions to iterative implementations. Optimize your Python code by transforming stack-heavy recursion into efficient loops.
Project description
recursion2iteration
This package provides common recursive patterns to iterative implementations. The goal is to provide stack-safe and memory-efficient iterative implementations in python language.
Features
- 🔄 Convert recursive functions to iterative implementations
- 🔧 Type-safe implementations with full typing support
Installation
pip install recursion2loop
Available Transformations
- Tree Traversals (check for more details: tree traversal documentation)
- Tree Operations (check for more details: tree operations documentation)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Code of Conduct
This project and everyone participating in it is governed by the Code of Conduct. By participating, you are expected to uphold this code.
Contributing
Your contributions are always welcome! Please take a look at the contribution guidelines first.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file recursion2loop-0.2.0.tar.gz.
File metadata
- Download URL: recursion2loop-0.2.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f636d84e31a3476c8effa0167fc9ba9880708d7505f73e90185d79911fed0f8
|
|
| MD5 |
2f8cbb0bbfd014749f0bbab287f01aeb
|
|
| BLAKE2b-256 |
3ce2bea877b455f045876ff1a86fb3f596e5083a3e4ab205f930bc7a6562ce29
|
File details
Details for the file recursion2loop-0.2.0-py3-none-any.whl.
File metadata
- Download URL: recursion2loop-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22c594340e9b1ed3f150f8dfcf4dbf501934463d8ce224190d93e3b8b81a59ae
|
|
| MD5 |
a3d547c4600825fdf6835d1894cee4f5
|
|
| BLAKE2b-256 |
4501800acdefe2eb7d2dc254fb739f5f87a12a113aa11f290366cab1d6c8624f
|