Difference between revisions of "Iterator"
From OpenEUO
m |
m |
||
Line 1: | Line 1: | ||
− | + | == 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 | ||
+ | arg0..argN (optional) are of any type | ||
+ | Results | ||
+ | i is an iterator closure | ||
+ | |||
+ | == Closure Methods == | ||
+ | |||
+ | * [[iterator.run]] | ||
+ | |||
+ | == Example Usage == | ||
+ | |||
+ | |||
+ | == Description == | ||
+ | |||
== See Also == | == See Also == | ||
* [http://www.easyuo.com/openeuo/wiki/index.php/Simplelib simplelib] | * [http://www.easyuo.com/openeuo/wiki/index.php/Simplelib simplelib] | ||
+ | |||
+ | * [[iterator.run]] |
Revision as of 18:38, 2 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 arg0..argN (optional) are of any type
Results
i is an iterator closure