In Ruby, why is the accumulator called memo in the inject/reduce methods? -


out of curiosity, why accumulator called memo in inject/reduce methods? there context/history behind naming? mean "memo" or memo stand something?

http://ruby-doc.org/core-2.0/enumerable.html#method-i-inject

http://ruby-doc.org/core-2.0/enumerable.html#method-i-reduce

"memo" means in memory,that inject uses throughout full iteration hold intermediate object state,to use next iteration.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

asp.net - Configuring WCF Services in Code WCF 4.5 -