Nothing simple-to-use is yet in Base (but see 
https://github.com/JuliaLang/julia/pull/6437), but there are several options 
(roughly in the order easier-but-slower to harder-but-faster):
- The Iterators package
- The Grid package's Counter type
- The Cartesian package (if you're running 0.3, an improved version of 
Cartesian is in Base)

--Tim

On Friday, April 25, 2014 11:15:07 AM cnbiz850 wrote:
> for ff[1] in factors, ff[2] in factors, ff[3] in factors, ff[4] in factors,
>      ff[5] in factors, ff[6] in factors, ff[7] in factors,
>      ff[8] in factors, ff[9] in factors
> 
> To simplify the above, I tried the following but it didn't work:
> 
> for ff[1:9] in factors
> 
> Is there a similar simple way to do?

Reply via email to