JsIterator.hx 208 B

123456789101112
  1. package js;
  2. // prefixed with Js to avoid name clashes with standard Iterator structure
  3. typedef JsIterator<T> = {
  4. function next():JsIteratorStep<T>;
  5. }
  6. typedef JsIteratorStep<T> = {
  7. done:Bool,
  8. ?value:T
  9. }