1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-08 15:56:47 +02:00

Merge pull request #2136 from orsenthil/patch-2

memoize not memorize
This commit is contained in:
Geoff Liu
2016-02-15 14:18:37 -05:00

View File

@@ -280,7 +280,7 @@ def clos = { print it }
clos( "hi" )
/*
Groovy can memorize closure results [1][2][3]
Groovy can memoize closure results [1][2][3]
*/
def cl = {a, b ->
sleep(3000) // simulate some time consuming processing