Re: do some operation on a set of values
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: do some operation on a set of values
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2010年12月25日 22:24:26 -0200
> 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.