how to call a function inside a table

i have just created a function then i  insert it in a table using table.insert  command. but i dont know how to call it.

tableNameid

what to do with  id…i just filled it with the function name .but there is an  error

how to know the index of this element

Well, if it’s inserted first, its index is 1, if it’s inserted second, it’s 2, and so on.

What’s the reason for inserting functions into a table?

well …i just use #t as id and it works properly…but i dont know if i am going to insert another function then what would i do to call that function

ok   now i got it thanks for everything…and i am inserting some functions in table just to make sure if it possible to call some function randomly which is part of some table

tableNameid

what to do with  id…i just filled it with the function name .but there is an  error

how to know the index of this element

Well, if it’s inserted first, its index is 1, if it’s inserted second, it’s 2, and so on.

What’s the reason for inserting functions into a table?

well …i just use #t as id and it works properly…but i dont know if i am going to insert another function then what would i do to call that function

ok   now i got it thanks for everything…and i am inserting some functions in table just to make sure if it possible to call some function randomly which is part of some table