Re: Return a variable number of values from function
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Return a variable number of values from function
- From: "Matthias Gall" <matthias@...>
- Date: 2001年11月18日 23:52:31 +0100
> function foo ()
> return {6, "hello", {}, 32}
> end
>
> Result = foo()
> NumValues = getn(Result)
> FirstValue = Result[1]
> LastValue = Result[NumValues]
Okay, so, it was that easy. Thank you very much.
Greetings,
Matt