From: Robin Stocker Date: 2006-04-24T02:11:08+09:00 Subject: Re: How to make an array from a date range? ara.t.howard@noaa.gov wrote: > if you do simply use > > list = (a .. b).inject([]){|accum, date| accum << date} I'm curious, is there a special reason for the use of inject here? Doesn't the following do the same? list = (a..b).to_a > -a Robin