Difference between revisions of "Iterator"
From OpenEUO
					
										
					
					| m | m | ||
| Line 4: | Line 4: | ||
| Args | Args | ||
|   source     is a table, where keys and values are any type |   source     is a table, where keys and values are any type | ||
| − |   func       is a function | + |   func       is a function (or a table of functions) | 
|   arg0..argN (optional) are of any type |   arg0..argN (optional) are of any type | ||
| Results | Results | ||
Revision as of 12:53, 24 November 2010
Calling Pattern
Call
local i = sl.iterator(source, func, arg[, ...])
Args
source is a table, where keys and values are any type func is a function (or a table of functions) arg0..argN (optional) are of any type
Results
i is an iterator closure
