From: Dave Bass Date: 2008-07-14T23:52:37+09:00 Subject: Re: Factorials Victor Reyes wrote: > I guess my problem is understanding the role of the *inject* method. Same problem here. But I figured out it's ideal for calculating summations and products, where you'd use a big Sigma or Pi in mathematics. :-) Surprisingly Fortran never had Sigma or Pi constructs; we had to roll our own using a DO loop. Same for subsequent languages. Ruby is the first language I've come across with it built in. Maybe someone would explain why it's called "inject" though? Dave -- Posted via http://www.ruby-forum.com/.