You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that this might be valuable to the language, so perhaps we can include it into lev. Instead of an iterator library, perhaps as an extension to tables
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
The text was updated successfully, but these errors were encountered: