Re: Opposite of unpack() in lua 5.0?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Opposite of unpack() in lua 5.0?
- From: Markus Huber <pulse@...>
- Date: 2004年7月10日 21:42:14 +0200 (BST)
Michael Roth wrote:
> I would like to do the opposite of unpack(). Example:
>
> function test()
> return 1, 2, 3
> end
>
> t = pack(test())
>
> print(t[1])
function pack(...)
return arg
end
--
Markus