From: Jeff Pritchard Date: 2006-05-21T14:05:29+09:00 Subject: Re: rubynuby - confused by method name "inject" I agree, "map" makes a lot more sense than "collect". I'm going to just forget about collect and consider it "personally deprecated due to poor naming". As for Inject, nobody has come up with a wording that makes any sense to me yet. Does Inject have any aliases/synonyms? thanks, jp P.S. If I were to choose a synonym for the "inject" method, I might come up with "collect". vis. "iterate over these items and collect the results in one answer." It seems to me that this method does the same thing that the big Latin "E" symbol (Epsilon) does in Mathematics. Is there a name for that symbol within the math community? (I mean - besides Epsilon). Calculus and Physics are "twenty some odd years ago" for me. P.P.S. Is it considered bad form to create your own aliases for things like this? For instance, if I were to create an alias for Enumerated#inject like "gather", and use that all over my programs, would this be considered bad form, or just hunky-dory use of the language? -- Posted via http://www.ruby-forum.com/.