lua-users home
lua-l archive

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


Hello Mark,

Wednesday, June 10, 2009, 6:57:00 PM, you wrote:

> ViewList = {
>         Button( "I'm always here" ),
>         Optional( TestCondition(), Button( "Condition Was True" ) )
>         Button( "I'm always here too" )
> }

i don't used Ruby for a while, but afair, it uses "*" on both sides
(caller and callee):

f(a,b,*rest_of_args)

def f (a,b,*rest_of_args)
...
end

so we may try to expand {a,b,*x,c,d} to append( append({a,b},x), {c,d})


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin@gmail.com