HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulehslua-marshalling-2.3.2Haskell2010

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.