Menu

#91 Looping Function?

open
nobody
None
5
2006-06-09
2006-06-09
Anonymous
No

I would really like to see the ability to program
loops into functions. I have written hundreds of
functions and the one thing that makes it difficult
is the inability to loop. For example, being able to
specify a loop variable as you would with a 'for'
loop in C.
listA=[1:3:5:2:6:8]
listB = range(12:0:0)
for(i = 0;i <= dim(listA);i=i+1:"listB[i]=listA
[i+6])
It would be most useful.
Thanks

Discussion


Log in to post a comment.