Skip to main content

conversion of recursive functions to iterative implementations. Optimize your Python code by transforming stack-heavy recursion into efficient loops.

Project description

recursion2iteration

PyPI version Python Versions License: MIT Python Package

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

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.

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

recursion2loop-0.2.3.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

recursion2loop-0.2.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file recursion2loop-0.2.3.tar.gz.

File metadata

  • Download URL: recursion2loop-0.2.3.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for recursion2loop-0.2.3.tar.gz
Algorithm Hash digest
SHA256 f556e0e7330ad19d59b3d0ad0379de4660a2060b26c503e20df1293ed4dfc3a1
MD5 98b8fedcad68fdc69384dd4d51511b5c
BLAKE2b-256 e5c642c6bf5c96162fcf020601e5c388a0d571bc95790c014afed460af588ef0

See more details on using hashes here.

File details

Details for the file recursion2loop-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: recursion2loop-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for recursion2loop-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e1e4459aab22a949aa8846dddad4532f5db825d69059edd0cf6714ca176ccb88
MD5 caa715a54a96ee352f884240d75367e5
BLAKE2b-256 3a70403a1e5709017ed559c79828888a03b2a5e3ea36b9f9f082f6087afa4210

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page