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

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.1.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.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for recursion2loop-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1e5ae441a5fc470de5f277f49f04d85b6cb8cd0dcfa16d7dda689dc4e085505b
MD5 e11790fe06af114db7f922abeea9531e
BLAKE2b-256 c2a3106480dc4ba18039a7e8fc7a378c3175c404900e82e5971a8dd4bbc80b50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: recursion2loop-0.2.1-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

Hashes for recursion2loop-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5cc35a235e4f03678ca4b863a5f75acceeea9ee42c7dccba55ffa26f009cbc8
MD5 16f3dd6424ec0c26573c52be52065d36
BLAKE2b-256 26d2867badda63f617c4843dc6897857311a9f7abc1a2590a5c25844e2ab0d72

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