[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: FIFO-Matriz and vetor
- From: Andreas Stenius <kaos@...>
- Date: Mon, 06 Nov 2006 08:30:17 +0100
Dan - Lintouch user skrev:
[...]
m={{10,20,30},{40,50,60}}
table.insert(m,1,99)
objetive result after 5 repeat m={{99,99,99},{99,99,10}}
What?
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
//Andreas