Board Thread:General Coding Help/@comment-5301680-20170719085826/@comment-2200849-20170719214223

You could use a generator.