I have been advised to avoid procedural loops and use other functions like Scan,NestList, FoldList, NestWhileList, Inner and Outer. My worry is that if I have a need in which certain critical parameters have to be calculated at the end of each loop and then passed on to the next iteration which in simpler terms would mean that certain outputs of an iteration have to be passed as inputs for the very next iteration, then how to go about that.
list1 = Scan[someFunction,someList]
someFunction has certain input parameters
a; b; with some initial values at the beginning which are to be used for the first iteration only.
c; d; e; be the output where
e is the main output to be stored in
d are to be passed as input to
b respectively in the very next iteration.
a=1;b=1; (*For first iteration only*) someFunction[inp_] := ( e=inp+a+b; c=e^2; d=e^3; e ); someList=Range[0,0.1,0.0001]; list1=Scan[someFunction,someList];