lua-users home
lua-l archive

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

Dan - Lintouch user skrev:

objetive result after 5 repeat   m={{99,99,99},{99,99,10}}

Seems you've got figured it out, except you'd probably want to do table.insert(m, {1,99})

then table.remove will pop off the first entered value for you

I'd reccommend though to write your own fifo_push fifo_pop function using the table.xx functions, so you can easily change your implementation if needed, without goig over all source using it..

didn't get your objective of the 5 repeats though..

my 2 cents