Hello,
The following two code fragments seem at first glance to be the same
loop i = 1..3
and
loop for (i=1; i<=3; 1+=1)
Could someone comment on the best practice of when to use what loop type?
Also, one could loop over a list using an index loop or a foreach loop. Which is best
practice when? Are there any general guidelines?
Thanks
Logan
--
Logan J. Kelly, Ph.D.
Assistant Professor, Department of Economics
Director, UWRF Center for Economic Research
http://www.uwrf.edu/cer
23 D South Hall
College of Business and Economics
University of Wisconsin - River Falls
410 S. Third Street
River Falls, WI 54022-5001