On Wed, 30 Nov 2011, Ignacio Diaz-Emparanza wrote: > I need to build a loop with a not regulary spaced index, ¿what do you > think it is the best way? > > I mean, for example a loop over i=48, 60, 100, 250, 400, 780
Something like this, perhaps? <hansl> x = {48, 60, 100, 250, 400, 780} loop i=1..cols(x) --quiet j = x[i] printf "%d -> %d\n",i, j end loop </hansl> Riccardo (Jack) Lucchetti Dipartimento di Economia Università Politecnica delle Marche r.lucchetti(a)univpm.it http://www.econ.univpm.it/lucchetti