MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Beginner--How to simulate multiple returns for a function?


Jens-Peer Kuska wrote:

> what are multiple returns ?

Probably what the original poster wants is not just to return a list,
but to return a list and assign its elements to multiple variables.
E.g. Python understands the following

   (A, B, C) = (1, 2, 3)

to mean A = 1, B = 2, C = 3. Lisp has several similar constructs
(MULTIPLE-VALUE-BIND and so on).

Of course it would help if people would just come right out and
say what they want.

FWIW
Robert Dodier


  • Prev by Date: level curve selection
  • Next by Date: A good lag value for the Portmanteau test
  • Previous by thread: Re: Beginner--How to simulate multiple returns for a function?
  • Next by thread: Re: Re: Beginner--How to simulate multiple returns for a function?