P
Size: a a a
P
v
index++;
if (index > list.Length)
index = 0;
yield list[index];
index = (index + 1) % list.Length;
yield list[index];
P
index++;
if (index > list.Length)
index = 0;
yield list[index];
index = (index + 1) % list.Length;
yield list[index];
S
index++;
if (index > list.Length)
index = 0;
yield list[index];
index = (index + 1) % list.Length;
yield list[index];
v
Б[
index++;
if (index > list.Length)
index = 0;
yield list[index];
index = (index + 1) % list.Length;
yield list[index];
Б[
P
S
index++;
if (index > list.Length)
index = 0;
yield list[index];
index = (index + 1) % list.Length;
yield list[index];
S
S
S
S
v
index
будет меньше list.Length
и при этом ещё увеличивает index
на 1Б[
Б[
v
index = index + 1;
index = index % list.Length;
v
Б[
МР