lua-users home
lua-l archive

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


2012/12/18 Dirk Laurie <dirk.laurie@gmail.com>:
> 2012/12/18 steve donovan <steve.j.donovan@gmail.com>:
>
>> Does occur to me that Array should be given its own
>> module however.
>
> Plus more, but we can talk about it once the project gets
> under way.

Actually, on second thoughts, anything short of an array
with vector semantics will be disappointing.

10*{1,2,3} --> {10,20,30}
{1,2,3} + {4,5,6} --> {5,7,9}
{1,2,3}..{4,5,6} --> {1,2,3,4,5,6}
{1,2,3} + 1 -- to be debated, {2,3,4} or error
{1,2,3}*{4,5,6} -- to be debated, {4,10,18} or 32 or error

This must have been discussed several times before.