MathGroup Archive 2006

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

Search the Archive

Return, behaviour of

  • To: mathgroup at
  • Subject: [mg65497] Return, behaviour of
  • From: dh <dh at>
  • Date: Wed, 5 Apr 2006 06:55:40 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

$Version: 5.1 for Microsoft Windows (October 25, 2004)

Hello All,
can anybody explain the behaviour of "Return" in the following examples:

f[x_] := Return[b]; f[a]
f[x_] = Return[b]; f[a]
f := (Return[b]) & ; f[a]
f = (Return[b]) & ; f[a]
f := Function[Return[b]]; f[a]
f = Function[Return[b]]; f[a]

Only the first one returns the expect "b". All the others evaluate to 

Thank's  for your comment,

  • Prev by Date: Re: Vector algebra
  • Next by Date: Re: simultaneous nonlinear regression of a lot of data
  • Previous by thread: Re: Finding k-clique
  • Next by thread: Integrate problem