MathGroup Archive 2006

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

Search the Archive

Return, behaviour of

$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