let iter = iterator (): Item =
for x in outerIterator(args):
yield x
followed by either storing iter in a data structure, or otherwise using it in a non for-loop construct.
sequtils does contain an iterator items[T](xs: iterator (): T): T that goes in the other direction. I'm wondering if I'm missing something, or just having figured out the syntax to store my own custom iterator into a data structure to use explicitly.
Thanks, David