1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-16 03:34:53 +02:00

memoize not memorize

Let's use the correct term instead of the tongue-in-cheek term denoting the same concept.
This commit is contained in:
Senthil Kumaran
2016-02-15 11:03:10 -08:00
parent 712c9f342f
commit 1d785f8e84

View File

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