Skip to content
Prev 169425 / 398506 Next

seq(along= surprise

Kjetil Halvorsen wrote:
What is surprising?

sims is now a list that contains 1 element called "length" with a 
numeric value of 100.
Then seq(along=sims) is exactly 1, because sims has length 1.
Hence i is printed once (1 iteration of the loop) and is 1 in the first 
(and only) iteration.

Uwe