-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
I propose lev.iterator module.
It can be used on tables too because tables are also iterators.
This is draft APIs.
iterator.keys(iter_func):table
iterator.values(iter_func):table
iterator.isEmpty(iter_func):boolean
iterator.count(iter_func):number
iterator.toTable(iter_func):table
iterator.select(iter_func, predicate_func):table
iterator.indexOf(iter_func, predicate_func):number
iterator.lastIndexOf(iter_func, predicate_func):number
iterator.any(iter_func, predicate_func):boolean
iterator.all(iter_func, predicate_func):boolean