MLK> Ralph Shnelvar wrote: >>>> >>>> (2) What's the best Ruby way to do a sum from 1 to 1_000_000 >> >> MLK> Gauss's method: >> MLK> def triangular(n) >> MLK> (n + 1) * n / 2 >> MLK> end >> >> Ugh ... you _know_ that is not what I meant! MLK> Why not? You'd rather do that iteratively? What kind of masochist are MLK> you? Next time I'll be more of a masochist and lay out a more arbitrary set of criteria so that the focus of what I am trying to understand moves elsewhere.