W3cubDocs

/Haxe Lua

NativeIterator<T>(Void ‑> T)

package lua

Available on lua

This abstract enables easy conversion from basic lua iterators (i.e., a function that is called until it returns null), and Haxe iterators, which provide a next/hasNext interface.

Constructor

@:impl new (f:Void ‑> T )

Methods

@:impl @:to toIterator ():Iterator<T>

Static methods

@:impl static new (f:Void ‑> T )

@:from static fromF<T> (f:Void ‑> T ):NativeIterator<T>

@:from static fromF<T> (f:Void ‑> T ):NativeIterator<T>

@:impl @:to static toIterator ():Iterator<T>

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/lua/NativeIterator.html