1 module loops;
2 
3 import containers.ttree;
4 import std.stdio;
5 
6 void main()
7 {
8 	TTree!int ints;
9 
10 	while (true)
11 	{
12 		foreach (i; 0 .. 1_000_000)
13 			ints.insert(i);
14 
15 		foreach (i; 0 .. 1_000_000)
16 			ints.remove(i);
17 		writeln("iteration finished");
18 	}
19 }