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

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -