4 ms·
So, define a closure in terms that someone who has just learned what a variable is can understand. "Just memorize this syntax and do it" is not allowed.
by ebiester 14y ago
So, define a closure in terms that someone who has just learned what a variable is can understand.
"Just memorize this syntax and do it" is not allowed.
- pacala 14y agoI already did: > There is a function "each" that applies to arrays. "Each", for each element in the array, binds "elem" to the element value, then executes the body of the code block. The code applies "each" to array "arr" and executes "puts elem" for each element.
- qu4z-2 14y agoMy issue here is that the for version is pretty much exactly "Just memorize this syntax and do it"