[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re[2]: Next Version of Lua?
- From: Bulat Ziganshin <bulat.ziganshin@...>
- Date: Wed, 10 Jun 2009 20:40:17 +0400
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