lua-users home
lua-l archive

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


>>   (function(x) return x end) ("foo")
>
>Doesn't this syntax trim parameters to the first one only ?

You mean results, not arguments. No, it doesn't. For this you'd have to
wrap the complete call:
	((function(x) return x end) ("foo"))

In other words, (f(x,y,z)) does trim the results to the first one.
--lhf