E
Edmond Kachale
[Note: parts of this message were removed to make it a legal post.]
Rubysters,
I often use inject method (where and when I want to. Lol!). I would like to
know the difference between inject and reduce methods. I find them similar.
Ref: http://www.ruby-doc.org/core/classes/Enumerable.html#M001495
---
Edmond
Software Developer | Baobab Health Trust (http://www.baobabhealth.org/) |
Malawi
Cell: +265 999 465 137 | +265 881 234 717
*Prosperous New Year 2011 and Prosperous New Decade!!*
Rubysters,
I often use inject method (where and when I want to. Lol!). I would like to
know the difference between inject and reduce methods. I find them similar.
Ref: http://www.ruby-doc.org/core/classes/Enumerable.html#M001495
---
Edmond
Software Developer | Baobab Health Trust (http://www.baobabhealth.org/) |
Malawi
Cell: +265 999 465 137 | +265 881 234 717
*Prosperous New Year 2011 and Prosperous New Decade!!*