From: Zephyr Pellerin Date: 2007-11-23T07:05:02+09:00 Subject: Re: Iterate through Array? Sebastian Hungerecker wrote: > Zephyr Pellerin wrote: >> I've been messing around with generating all possible combinations of a >> set of letters, (Ala, a 6 letter set would start enumerating at "aaaaaa" >> then move on to "aaaaab" so on and so forth, all the way down to >> "zzzzz") > > ("aaaaaa".."zzzzzz").each do |string| > puts string > end > > This will run for a good while, but it won't hog memory the way a solution > populating an array would. > > > HTH, > Sebastian Impressive, Signifigantly less RAM usage.