-
Notifications
You must be signed in to change notification settings - Fork 216
Open
Labels
Description
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