title: Difference between stateful and stateless iterators in Lua
body: <p>What is difference between stateless and stateful iterators in Lua, explain in detail please?When do we need to use stateless and when the other one? I need examples to understand the concept.</p>