W3cubDocs

/Haxe

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

new (f:Void ‑> T )

Methods

toIterator ():Iterator<T>

Static methods

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

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