From: Leslie Viljoen Date: 2006-05-22T18:27:03+09:00 Subject: Re: rubynuby - confused by method name "inject" On 5/21/06, Jim Weirich wrote: > Jeff Pritchard wrote: > > As for Inject, nobody has come up with a wording that makes any sense to > > me yet. Does Inject have any aliases/synonyms? > > How I remember: Inject takes a binary operation (e.g. +) and injects it > between each element of a list. > > [1,2,3].inject { |a,b| a+b } => 1+2+3 Awesome! That really helps me!