lua-users home
lua-l archive

Re: do some operation on a set of values

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


> for example i have a = {1, 2, 3} and b = {5, 6, 7} so i want know this is possible :
> c = a + b
> or
> c = a * b
> and lua + or * all values and return new table in c variable.
Learn about metatables and metamethods.

AltStyle によって変換されたページ (->オリジナル) /