Skip to content

lev.iterator module #71

Description

@hnakamur

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions