Skip to content

Make the Iterator API public #1060

@Diegovsky

Description

@Diegovsky

I'm writing code where Rhai can produce an iterable value such as an Array or a Range. It would be nice to be able to do value.iter() or something similar like the for x in value expression allows for. The page about iterators only mentions you can register custom ones, but not how to use them,

On a similar note, it would be cool for Rhai to have some sort of Iterator type, which is just a Box<dyn Iterator<Item=Dynamic>>, instead of eagerly evaluating iterators into arrays.

Related: #130

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions