HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehslua-marshalling-2.3.1Haskell2010

HsLua.Marshalling.Userdata

Convenience functions to use Haskell values as Lua userdata.

  • 1 value
valuepushIterator
  1. :: LuaError e
  2. => (a -> LuaE e NumResults)

    pusher for the values

  3. -> [a]

    list to iterate over lazily

  4. -> LuaE e NumResults
#

Pushes three values to the stack that can be used in a generic for loop to lazily iterate over all values in the list. Keeps the remaining list in a userdata state.

If the values pusher function returns NumResults 0 for a list item, then this item will be skipped and the values for the next item will be pushed.