lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 2023-05-13 04:07, nobody wrote:
function newCounter( )
      return function( )  i = i + 1 ; return i  end
    end

It's late and I dropped the `local i = 0` twice -.- but you get the idea…

-- nobody