Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
GetOrgChart 2.5.3
AnyGantt JS Gantt Charts 8.6.0
AnyChart JS Charts and Dashboards 8.6.0
Multi Vendor Ecommerce Script & Apps 4.0
Magento 2 Inventory Management Extension 1.0
Yipit Clone Script - Daily Deals Software 1.0.2
Devart Excel Add-in for Oracle 1.7
Devart Excel Add-in for Freshdesk 1.7
Devart Excel Add-in for G Suite 1.7
C# QR Code Generator 4.0.2.2
Salesforce WordPress Customer Portal 3.2.0
Single Leg MLM 1.2.1
OzGIS 14.6
Quick Maps For Dynamics CRM 3.1
Job Board Software 4.2
Top Code
WinPoker 2.02
STDF file reader 1.0
qtukey 1.0
Hough transform for circles 1.0
Visual Studio .NET Obfuscator 4.03.1
Extensible Bulletin Board Code System 1.0
WebKit2.NET 0.10
School Management Script 1.0.4
Be.HexEditor (.NET C# hex edit control) 150
Comag Channel List Editor 1.0
Beremiz 1.0
shopping mall management system 1.0
Proja - Project Makefile Generator 1.0
Feed The Snake 1.3
Cart2Cart - Automated Shopping Cart Migration 2.17.2176
Top Rated
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
Simple recursive function to non-recursive function 
File ID: 64075






Simple recursive function to non-recursive function 
Download Simple recursive function to non-recursive function http://code.activestate.com/recipes/578090-python-template-engine/Report Error Link
License: Freeware
Downloads: 27
Submit Rating:
Simple recursive function to non-recursive function  Description
Description: This recipe is a simple solution for turning a recursive function into a non-recursive function.

License: Freeware

Related: Function, List, recursive, substitute

O/S:Windows

Downloads: 27



More Similar Code

Nothing flash, just a simple helper function to return the current selection and selectionIndex from the specified listbox or popupmenu.



A simple python function to automate using the swig process for creating C modules for use inside Python.



A simple generator function to return an input string in fragments, each broken at spaces in the text.



Function to clean trailing and or preceeding whitespace from string types in complex list, dictionary, and tuple structures. This is a recursive function to allow for complete coverage of all items in the structure. Wanted to share it as I needed...



I have written Flatten a few dozen times, and also searched the interwebs - I don't feel good about a heavily recursive function for Python, and some of the "type-sniffing" I saw in some codes seemed fishy - so I coded up this version....



Simple C++ Function Package (SCFP) contains a library of C++ header files. As well as a couple of small applications that will help yo in your C++ developement.



If you need to generate the cross product of a variable number of lists, here is how to do it with an obscure one-liner instead of a nice and clean recursive function. I came to this while trying to find a short and simple solution for generating...



A recursive algorithm that queries an objective function to guess an unknown integer.
An integer guessing 'game' for a
function `isleq', that returns true for
all values less than or equal to a
mystery number.



Extremely fast, non-recursive, depth limited flatten with powerful control over which subtrees are to be expanded. If this is what you need then look no further.



An iterative equivalent to the recursive function given in the recipe "Generator for integer partitions" by David Eppstein.

Uses the representation

7 = 17 = 16 + 11 = 15 + 12 = 15 + 2*1 = ...

User Review for Simple recursive function to non-recursive function
- required fields
     

Please enter text on the image