I am using Wolfram script with a Mac OS. I have a long while loop dependent on the length of a list. i.e.:
myList = {}
While[ Length[myList] < 100, myList = AppendTo[myList, 0]]
How do I get a progress bar to appear in my terminal during this while loop?
myList
is not defined,While
does not have a test and a body separated by coma and if you put the coma that loop is infinite cause you are not increasing the length ofmyList
. $\endgroup$myList = {}; While[ Length[myList] < 100, myList += {0,0}]
$\endgroup$