Simulated Iterable with a 'while do'