mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-05 14:27:51 +02:00
Groovy: v 1.0
This commit is contained in:
@@ -229,7 +229,7 @@ clos( "hi" )
|
|||||||
http://roshandawrani.wordpress.com/2010/10/18/groovy-new-feature-closures-can-now-memorize-their-results/
|
http://roshandawrani.wordpress.com/2010/10/18/groovy-new-feature-closures-can-now-memorize-their-results/
|
||||||
http://www.solutionsiq.com/resources/agileiq-blog/bid/72880/Programming-with-Groovy-Trampoline-and-Memoize
|
http://www.solutionsiq.com/resources/agileiq-blog/bid/72880/Programming-with-Groovy-Trampoline-and-Memoize
|
||||||
http://mrhaki.blogspot.mx/2011/05/groovy-goodness-cache-closure-results.html
|
http://mrhaki.blogspot.mx/2011/05/groovy-goodness-cache-closure-results.html
|
||||||
/*
|
*/
|
||||||
def cl = {a, b ->
|
def cl = {a, b ->
|
||||||
sleep(3000) // simulate some time consuming processing
|
sleep(3000) // simulate some time consuming processing
|
||||||
a + b
|
a + b
|
||||||
|
Reference in New Issue
Block a user