Return, behaviour of
- To: mathgroup at smc.vnet.net
- Subject: [mg65497] Return, behaviour of
- From: dh <dh at metrohm.ch>
- Date: Wed, 5 Apr 2006 06:55:40 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
$Version: 5.1 for Microsoft Windows (October 25, 2004) Hello All, can anybody explain the behaviour of "Return" in the following examples: Remove[f]; 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 "Return[b]" Thank's for your comment, Daniel