This project demonstrates via a series of Spock specifications the usage of the trampoline and memoize language features available in Groovy 1.8. It also covers two ways of combining trampolining and memoization (i.e., memoization of the top-level trampolined call, and memoization of each individual trampolined call).
Groovy
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/test/groovy/timezra/groovy/trampoline_memoize
.gitignore
README
build.gradle

README

This project demonstrates via a series of Spock specifications the usage of the trampoline and memoize language features available in Groovy 1.8. It also covers two ways of combining trampolining and memoization (i.e., memoization of the top-level trampolined call, and memoization of each individual trampolined call).

It is the companion source code for this tutorial: http://timezra.blogspot.com/2011/11/trampoline-and-memoize.html

This project can be built from the project root using gradle (1.0-M5 as of this writing):
    $> gradle test
    
In order to setup this project in Eclipse, the .project and .classpath files should be setup using gradle:
    $> gradle eclipseProject
    $> gradle eclipseClasspath
       In the generated .classpath file, you will probably want to change the output directory from bin to build/classes