MathGroup Archive 2006

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg66468] Re: [mg66444] Re: Beginner--How to simulate multiple returns for a function?
  • From: "M. Park" <mpark4bb at yahoo.co.jp>
  • Date: Sun, 14 May 2006 02:58:13 -0400 (EDT)
  • References: <Pine.GSO.4.44.0605100054500.17163-100000@smc> <e3v0tt$pav$1@smc.vnet.net> <e419hj$h6p$1@smc.vnet.net> <200605130642.CAA08894@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"{ }" instead of "( )" will work.

  {A, B, C} = {1, 2, 3}


----- Original Message ----- 
From: "Robert Dodier" <robert.dodier at gmail.com>
To: mathgroup at smc.vnet.net
Subject: [mg66468] [mg66444] 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
>
> 

--------------------------------------
Yahoo! JAPAN 10th Anniversary Special Feature
--- Enjoy Yahoo! Auction with Yahoo! Mail !! ---
http://pr.mail.yahoo.co.jp/auction/


  • Prev by Date: Re: Re: Re: Do Mathematica applications EVER get updated?
  • Next by Date: Re: Limit Question
  • 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?