Version 1 of Iterator Protocol

Updated 2012-10-19 21:47:55 by RLE

With the advent of coroutines, Tcl now has an iterator protocol. The protocol is simple: An iterator is a command which one calls repeatedly until the command no longer exists. for ... in ... is a drop-in replacement for the standard for command which supports an expanding syntax for looping over iterators.