New Tail Recursion Decorator

Category: Python - Education

This tail recursion decorator can eliminate the tail calls for recursive functions. Date: 24 March, 2012


Recursive Functions - Tail Calls - Tail Recursion - Tail - Recursive - Functions

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

This script contains efficient recursive functions for generating combinations of specified length from a specified string.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This function decorates a function with tail call optimization.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script represents a simple implementation of the standard UNIX utility tail -f in Python.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


A python class which "watches" a directory and calls a callback(filename, lines) function every time one of the files being watched gets written, in real time.

developer Developer: Giampaolo Rodol?
license License: Freeware
operating systems Operating System: Windows


This is my version of a "File Tail" class for Python3 (will not work on Python2 w/o a couple of modifications).

developer Developer: Jason Morriss
license License: Freeware
operating systems Operating System: Windows


Sometimes tail -f launched for log file miss the point when program recreates log file.

developer Developer: Denis Barmenkov
license License: Freeware
operating systems Operating System: Windows


Takes a stream of numbers and outputs simple ASCII graphs of those numbers.

developer Developer: Drew Gulino
license License: Freeware
operating systems Operating System: Windows


This script shows an extremely simple implementation of a method used for randomizing the iterable.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This code uses a strcat() clone function, concatenates two char arrays and automatically delimits both strings with a space.

developer Developer: planet-source-code.com
license License: Freeware
operating systems Operating System: All