Question: map instead of loops ?

Hi, people say that for-next loops are the worst way to apply repeated operations (why?). Assume i have the list


and the command line that does some stuff in it :

for i from 1 to nops(L)-1 do
 end do;

Whats a better way to do this? I guess map is useful here, but i cant get it to work.











Please Wait...