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
Post a Comment