HaxeIterable.hx 303 B

12345678910111213141516
  1. package python;
  2. import python.NativeIterable.NativeIterableRaw;
  3. class HaxeIterable<T> {
  4. var x : NativeIterableRaw<T>;
  5. public inline function new(x:NativeIterableRaw<T>) {
  6. this.x = x;
  7. }
  8. public inline function iterator():HaxeIterator<T> {
  9. return new HaxeIterator(x.__iter__());
  10. }
  11. }